}
},
+ reset: function () {
+ this.fluidbook.cache.unset('lock_maxpage');
+ let first = true;
+ let $this = this;
+ let mp = 0;
+ $.each(this.locks, function (k, v) {
+ if (first) {
+ mp = k;
+ first = false;
+ }
+ $this.locks[k].unlocked = 0;
+ });
+
+
+ this.setMaxPage(mp, true);
+ this.fluidbook.setCurrentPage(mp);
+
+ },
+
getNextLockPage: function () {
var res = 0;
var $this = this;
$.each(this.locks, function (k, v) {
- if ($this.maxPage > k) {
- $this.locks[k].unlocked = 1;
- }
+ if ($this.maxPage > k) {
+ $this.locks[k].unlocked = 1;
}
- );
+ });
this.fluidbook.menu.index.reset();
var $this = this;
var change = false;
- var unlockEvenPages = !this.fluidbook.mobilefirst.enabled;
+ var unlockEvenPages = !this.fluidbook.singleMode;
var currentPage = $this.fluidbook.currentPage;
$.each(this.locks, function (k, v) {