Lines Matching defs:pageid

15  * Is pageid in stored selection
17 * @param {string} pageid
20 Storage.prototype.isSelected = function(pageid) {
21 return this._storage.indexOf(pageid) !== -1;
25 * Insert pageid at given position
27 * @param {string} pageid
30 Storage.prototype.addPage = function(pageid, position) {
32 this._storage.push(pageid); //add to the end
34 this._storage.splice(position, 0, pageid);
41 * Move pageid inside selection to given position
43 * @param {string} pageid
46 Storage.prototype.movePage = function(pageid, position) {
47 if(!this._deletePage(pageid).length) return;
49 this.addPage(pageid, position);
53 * Delete pageid from selection
54 * @param pageid
56 Storage.prototype.deletePage = function(pageid) {
57 this._deletePage(pageid);
62 * Delete given pageid from storage
64 * @param pageid
68 Storage.prototype._deletePage = function(pageid) {
69 let pos = this._storage.indexOf(pageid);
428 * @param {string} pageid
432 toggleSelectedPage: function (pageid, isAddAction, position) {
434 Bookcreator.selectedpages.addPage(pageid, position);
435 BookManager.deletedpages.deletePage(pageid);
437 Bookcreator.selectedpages.deletePage(pageid);
438 BookManager.deletedpages.addPage(pageid, position);
448 pageid = $li.attr('id').substr(4);
457 BookManager.toggleSelectedPage(pageid, isAddAction);
468 let pageid = ui.item.attr('id').substr(4),
473 BookManager.toggleSelectedPage(pageid, isAddAction, position);
504 pageid = ui.item.attr('id').substr(4),
511 Bookcreator.selectedpages.movePage(pageid, endindex);
513 BookManager.deletedpages.movePage(pageid, endindex);
538 pageid = $this.parent().data('pageId');
579 savedselectionname: pageid,