manga mode toolbar button

This commit is contained in:
Bala Clark 2013-08-19 23:09:31 +02:00
parent e83dd1e875
commit 57e67301eb
3 changed files with 16 additions and 1 deletions

View file

@ -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) {