$('#menuList > ul, #chapterList').perfectScrollbar({
suppressScrollX: true, minScrollbarLength: 40, //maxScrollbarLength: 60
});
- },
- closeMenu: function () {
+ }, closeMenu: function () {
this.menuAPI.close();
}, // getIcon: function (name) {
// var src = 'data/images/' + name + '.';
if (q !== undefined) {
$("#q").val(q);
- this.fluidbook.search.submitForm();
+ if ($("#menuSearchResults .content").length === 0) {
+ this.fluidbook.search.submitForm();
+ }
} else {
this.menuAPI.open();
$('#q').focus(); // Put cursor in the search field