remeber whether menus were open or not and show them when the toolbar is shown
This commit is contained in:
parent
8194f3e7ea
commit
b3443a93fc
1 changed files with 4 additions and 4 deletions
|
@ -319,22 +319,22 @@ function ComicBook(id, srcs, opts) {
|
|||
};
|
||||
|
||||
ComicBook.prototype.showControl = function(control) {
|
||||
this.getControl(control).show();
|
||||
this.getControl(control).show().addClass("open");
|
||||
};
|
||||
|
||||
ComicBook.prototype.hideControl = function(control) {
|
||||
this.getControl(control).hide();
|
||||
this.getControl(control).removeClass("open").hide();
|
||||
};
|
||||
|
||||
ComicBook.prototype.toggleControl = function(control) {
|
||||
this.getControl(control).toggle();
|
||||
this.getControl(control).toggle().toggleClass("open");
|
||||
};
|
||||
|
||||
ComicBook.prototype.toggleToolbar = function() {
|
||||
if ($("#cb-toolbar").is(":visible")) {
|
||||
$(".cb-control").not(".cb-navigate").hide();
|
||||
} else {
|
||||
$("#cb-toolbar").show();
|
||||
$("#cb-toolbar, .cb-control.open").show();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue