improved toolbar toggling
This commit is contained in:
parent
48e5348bde
commit
b1e8e4828b
1 changed files with 6 additions and 6 deletions
|
@ -302,16 +302,16 @@ function ComicBook(id, srcs, opts) {
|
||||||
this.getControl(control).hide();
|
this.getControl(control).hide();
|
||||||
};
|
};
|
||||||
|
|
||||||
ComicBook.prototype.toggle = function(e) {
|
|
||||||
e.toggle();
|
|
||||||
};
|
|
||||||
|
|
||||||
ComicBook.prototype.toggleControl = function(control) {
|
ComicBook.prototype.toggleControl = function(control) {
|
||||||
ComicBook.prototype.toggle(this.getControl(control));
|
this.getControl(control).toggle();
|
||||||
};
|
};
|
||||||
|
|
||||||
ComicBook.prototype.toggleToolbar = function() {
|
ComicBook.prototype.toggleToolbar = function() {
|
||||||
ComicBook.prototype.toggle($("#cb-toolbar"));
|
if ($("#cb-toolbar").is(":visible")) {
|
||||||
|
$(".cb-control").not(".cb-navigate").hide();
|
||||||
|
} else {
|
||||||
|
$("#cb-toolbar").show();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
ComicBook.prototype.toggleLayout = function() {
|
ComicBook.prototype.toggleLayout = function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue