allow toolbar to be toggled in mobile devices
This commit is contained in:
parent
e1491a7e6f
commit
e6866964bd
1 changed files with 7 additions and 0 deletions
|
@ -174,6 +174,9 @@ var ComicBook = (function ($) {
|
|||
|
||||
window.addEventListener('touchstart', function (e) {
|
||||
var $el = $(e.target);
|
||||
if ($el.attr('id') === 'comic') {
|
||||
self.toggleToolbar();
|
||||
}
|
||||
if ($el.data('toggle') === 'dropdown' ) {
|
||||
$el.siblings('.dropdown').toggle();
|
||||
}
|
||||
|
@ -848,6 +851,10 @@ var ComicBook = (function ($) {
|
|||
.find('.manga-' + !options.manga).hide();
|
||||
};
|
||||
|
||||
ComicBook.prototype.toggleToolbar = function () {
|
||||
self.toggleControl('toolbar');
|
||||
};
|
||||
|
||||
ComicBook.prototype.destroy = function () {
|
||||
|
||||
$.each(this.controls, function (name, $control) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue