Delete albums with cmd + backspace

This commit is contained in:
Tobias Reich 2014-03-16 21:00:00 +01:00
parent ec25381db2
commit 0ba638286a

View File

@ -76,9 +76,12 @@ $(document).ready(function(){
Mousetrap
.bind('u', function() { $("#upload_files").click() })
.bind('s', function() { if (visible.photo()) $("#button_star").click() })
.bind('command+backspace', function() { if (visible.photo()&&!visible.message()) photo.delete([photo.getID()]) })
.bind('left', function() { if (visible.photo()) $("#imageview a#previous").click() })
.bind('right', function() { if (visible.photo()) $("#imageview a#next").click() })
.bind('command+backspace', function() {
if (visible.photo()&&!visible.message()) photo.delete([photo.getID()]);
else if (visible.album()&&!visible.message()) album.delete([album.getID()]);
})
.bind('i', function() {
if (visible.infobox()) view.infobox.hide();
else if (!visible.albums()) view.infobox.show();