manga mode toolbar button
This commit is contained in:
parent
e83dd1e875
commit
57e67301eb
3 changed files with 16 additions and 1 deletions
|
@ -239,6 +239,10 @@ var ComicBook = (function ($) {
|
|||
});
|
||||
|
||||
this.controls = controls;
|
||||
|
||||
this.getControl('toolbar')
|
||||
.find('.manga-' + options.manga).show().end()
|
||||
.find('.manga-' + !options.manga).hide();
|
||||
};
|
||||
|
||||
ComicBook.prototype.getControl = function (control) {
|
||||
|
@ -835,6 +839,13 @@ var ComicBook = (function ($) {
|
|||
}
|
||||
};
|
||||
|
||||
ComicBook.prototype.toggleReadingMode = function () {
|
||||
options.manga = !options.manga;
|
||||
self.getControl('toolbar')
|
||||
.find('.manga-' + options.manga).show().end()
|
||||
.find('.manga-' + !options.manga).hide();
|
||||
};
|
||||
|
||||
ComicBook.prototype.destroy = function () {
|
||||
|
||||
$.each(this.controls, function (name, $control) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue