Commit 80c06f1c authored by njean42's avatar njean42
Browse files

Fix page/panel reading mode selection on page load.

parent 90c8eead
......@@ -232,10 +232,11 @@ class Reader {
this.gui.append(menu);
this.showMenu(false);
if (this.debug)
$('input[name=viewmode][value=page]', this.gui).prop('checked',true);
else
$('input[name=viewmode][value=panel]', this.gui).prop('checked',true);
var _reader = this;
$(document).ready( function () {
var mode = _reader.debug ? 'page' : 'panel';
$('input[name=viewmode][value='+mode+']', _reader.gui).prop('checked',true).change();
});
}
showMenu(show=true)
......@@ -329,5 +330,5 @@ $(function() {
$(this).data('reader').showMenu();
}
});
$('body').swipe( {fingers:2} );
$('.kumiko-reader').swipe( {fingers:2} );
});
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment