Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

allow toolbar to be toggled in mobile devices

  • Loading branch information...
commit e6866964bd8d308ecddc5e47408cc659f584a28a 1 parent e1491a7
@balaclark authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/ComicBook.js
View
7 lib/ComicBook.js
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.