Lines Matching defs:this

11     this.localStorageKey = key;
12 this._storage = [];
21 return this._storage.indexOf(pageid) !== -1;
32 this._storage.push(pageid); //add to the end
34 this._storage.splice(position, 0, pageid);
37 this._save();
47 if(!this._deletePage(pageid).length) return;
49 this.addPage(pageid, position);
57 this._deletePage(pageid);
58 this._save();
69 let pos = this._storage.indexOf(pageid);
72 return this._storage.splice(pos, 1);
79 this._storage = [];
80 this._save();
89 return this._storage;
98 this._storage = selection;
99 this._save();
108 return this._storage.length;
117 window.localStorage.setItem(this.localStorageKey, JSON.stringify(this._storage));
124 let source = window.localStorage.getItem(this.localStorageKey);
127 this._storage = JSON.parse(source) || [];
129 this._storage = [];
140 this.localStorageKey = key;
144 window.localStorage.setItem(this.localStorageKey, value);
148 return window.localStorage.getItem(this.localStorageKey);
193 this.selectedpages.load();
194 this.isCurrentPageSelected = this.selectedpages.isSelected(JSINFO.id);
201 if(this.isCurrentPageSelected) {
202 this.selectedpages.deletePage(JSINFO.id);
204 this.selectedpages.addPage(JSINFO.id);
206 this.isCurrentPageSelected = this.selectedpages.isSelected(JSINFO.id);
221 // var text = LANG.plugins.bookcreator['btn_' + (this.isCurrentPageSelected ? 'remove' : 'add') + 'tobook'];
224 // .toggleClass('remove', this.isCurrentPageSelected)
231 let text = LANG.plugins.bookcreator['btn_' + (this.isCurrentPageSelected ? 'remove' : 'add') + 'tobook'];
234 .toggleClass('remove', this.isCurrentPageSelected)
246 .toggleClass('remove', this.isCurrentPageSelected)
252 if(this.isBookbarVisible()) {
253 jQuery("#bookcreator__add").toggle(!this.isCurrentPageSelected);
254 jQuery("#bookcreator__remove").toggle(this.isCurrentPageSelected);
256 jQuery("#bookcreator__pages").html(this.selectedpages.count());
258 $bookbar.toggle(this.isBookbarVisible())
274 || JSINFO.bookcreator.showBookbar === 'noempty' && this.selectedpages.count() > 0;
285 this.deletedpages.load();
306 let notcachedpages = jQuery(Bookcreator.selectedpages.getSelection()).not(Object.keys(this.cache)).get();
307 notcachedpages = notcachedpages.concat(jQuery(BookManager.deletedpages.getSelection()).not(Object.keys(this.cache)).get());
333 this.updateLists();
446 let $a = jQuery(this),
536 let $this = jQuery(this),
537 action = ($this.hasClass('delete') ? 'delete' : 'load'),
538 pageid = $this.parent().data('pageId');
557 let $msg = $this.parent().parent().parent().find('.message'); //get $msg before deletion of the li elem
591 saveSelection: function($this) {
592 let $fieldset = $this.parent(),
666 let $this = jQuery(this),
667 do_action = $this.find('select[name="do"]').val();
671 $this.append(
678 let formdata = $this.serializeArray();
780 let offset = jQuery(this).offset();
781 let offsetparent = jQuery(this).parent().parent().offset();
799 BookManager.saveSelection(jQuery(this));
803 let value = jQuery(this).val();