});
if (change || this.getNextLockPage() !== this.getMaxPage()) {
- this.unlockNextPage();
+ this.setMaxPage(this.getNextLockPage(), false);
}
},
},
unlockNextPage: function () {
- this.setMaxPage(this.getNextLockPage(), false)
+ $.each(this.locks, function (k, v) {
+ if (v.unlocked === 1) {
+ return;
+ }
+ if (v.conditions.length === 0) {
+ return;
+ }
+
+ $this.locks[k].unlocked = 1;
+ return true;
+ });
+ if (this.getNextLockPage() !== this.getMaxPage()) {
+ this.setMaxPage(this.getNextLockPage(), false);
+ }
}
}
\ No newline at end of file