Code style adjustment
This commit is contained in:
parent
5c18fbeed8
commit
9d5e9a4137
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
multiselect = {
|
multiselect = {
|
||||||
|
|
||||||
ids : []
|
ids: []
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,6 +31,7 @@ multiselect.toggleItem = function(object, id) {
|
|||||||
if (album.isSmartID(id)) return
|
if (album.isSmartID(id)) return
|
||||||
|
|
||||||
let pos = $.inArray(id, multiselect.ids)
|
let pos = $.inArray(id, multiselect.ids)
|
||||||
|
|
||||||
if (pos!=-1) {
|
if (pos!=-1) {
|
||||||
multiselect.ids.splice(pos, 1)
|
multiselect.ids.splice(pos, 1)
|
||||||
multiselect.deselect(object)
|
multiselect.deselect(object)
|
||||||
@ -46,7 +47,7 @@ multiselect.albumClick = function(e, albumObj) {
|
|||||||
let id = albumObj.attr('data-id')
|
let id = albumObj.attr('data-id')
|
||||||
|
|
||||||
if (e.shiftKey) multiselect.toggleItem(albumObj, 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')
|
let id = photoObj.attr('data-id')
|
||||||
|
|
||||||
if (e.shiftKey) multiselect.toggleItem(photoObj, id)
|
if (e.shiftKey) multiselect.toggleItem(photoObj, id)
|
||||||
else lychee.goto(album.getID() + '/' + id)
|
else lychee.goto(album.getID() + '/' + id)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user