Disable infobox shortcut in SmartAlbums

This commit is contained in:
Tobias Reich 2014-05-17 23:30:02 +02:00
parent 3707677356
commit f08e838a38
3 changed files with 10 additions and 3 deletions

View File

@ -99,7 +99,7 @@ $(document).ready(function(){
})
.bind(['i', 'ctrl+i'], function() {
if (visible.infobox()) view.infobox.hide();
else if (!visible.albums()) view.infobox.show();
else if (visible.infoboxbutton()) view.infobox.show();
})
.bind(['command+backspace', 'ctrl+backspace'], function() {
if (visible.photo()&&!visible.message()) photo.delete([photo.getID()]);

View File

@ -32,6 +32,13 @@ visible = {
else return false;
},
infoboxbutton: function() {
if (visible.albums()) return false;
if (visible.photo()) return true;
if (visible.album()&&$('#button_info_album:visible').length>0) return true;
else return false;
},
controls: function() {
if (lychee.loadingBar.css('opacity')<1) return false;
else return true;

File diff suppressed because one or more lines are too long