Code style adjustment

pull/603/head
Tobias Reich 8 years ago
parent 5c18fbeed8
commit 9d5e9a4137

@ -5,7 +5,7 @@
multiselect = {
ids : []
ids: []
}
@ -31,6 +31,7 @@ multiselect.toggleItem = function(object, id) {
if (album.isSmartID(id)) return
let pos = $.inArray(id, multiselect.ids)
if (pos!=-1) {
multiselect.ids.splice(pos, 1)
multiselect.deselect(object)
@ -46,7 +47,7 @@ multiselect.albumClick = function(e, albumObj) {
let id = albumObj.attr('data-id')
if (e.shiftKey) multiselect.toggleItem(albumObj, id)
else lychee.goto(id)
else lychee.goto(id)
}
@ -55,7 +56,7 @@ multiselect.photoClick = function(e, photoObj) {
let id = photoObj.attr('data-id')
if (e.shiftKey) multiselect.toggleItem(photoObj, id)
else lychee.goto(album.getID() + '/' + id)
else lychee.goto(album.getID() + '/' + id)
}

Loading…
Cancel
Save