improved toolbar toggling

This commit is contained in:
Bala Clark 2011-09-02 10:35:53 +02:00
parent 48e5348bde
commit b1e8e4828b

View file

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