Disable multiselect when searching
This commit is contained in:
parent
e648281dcd
commit
f46f63b764
@ -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();
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user