Disable multiselect when searching

This commit is contained in:
Tobias Reich 2014-02-09 22:23:09 +01:00
parent e648281dcd
commit f46f63b764
2 changed files with 15 additions and 9 deletions

View File

@ -20,6 +20,7 @@ multiselect = {
if (mobileBrowser()) return false; if (mobileBrowser()) return false;
if (lychee.publicMode) return false; if (lychee.publicMode) return false;
if (visible.search()) return false;
if ($('.album:hover, .photo:hover').length!=0) return false; if ($('.album:hover, .photo:hover').length!=0) return false;
if (visible.multiselect()) $('#multiselect').remove(); if (visible.multiselect()) $('#multiselect').remove();

View File

@ -8,47 +8,52 @@
visible = { visible = {
albums: function() { albums: function() {
if ($("#tools_albums").css("display")==="block") return true; if ($('#tools_albums').css('display')==='block') return true;
else return false; else return false;
}, },
album: function() { album: function() {
if ($("#tools_album").css("display")==="block") return true; if ($('#tools_album').css('display')==='block') return true;
else return false; else return false;
}, },
photo: function() { photo: function() {
if ($("#imageview.fadeIn").length>0) return true; if ($('#imageview.fadeIn').length>0) return true;
else return false;
},
search: function() {
if (search.code!==null&&search.code!=='') return true;
else return false; else return false;
}, },
infobox: function() { infobox: function() {
if ($("#infobox.active").length>0) return true; if ($('#infobox.active').length>0) return true;
else return false; else return false;
}, },
controls: function() { controls: function() {
if (lychee.loadingBar.css("opacity")<1) return false; if (lychee.loadingBar.css('opacity')<1) return false;
else return true; else return true;
}, },
message: function() { message: function() {
if ($(".message").length>0) return true; if ($('.message').length>0) return true;
else return false; else return false;
}, },
signin: function() { signin: function() {
if ($(".message .sign_in").length>0) return true; if ($('.message .sign_in').length>0) return true;
else return false; else return false;
}, },
contextMenu: function() { contextMenu: function() {
if ($(".contextmenu").length>0) return true; if ($('.contextmenu').length>0) return true;
else return false; else return false;
}, },
multiselect: function() { multiselect: function() {
if ($("#multiselect").length>0) return true; if ($('#multiselect').length>0) return true;
else return false; else return false;
} }