|
@@ -53,9 +53,9 @@ contextMenu.album = function(albumID, e) {
|
|
|
let showMerge = (albums.json && albums.json.albums && Object.keys(albums.json.albums).length>1)
|
|
|
|
|
|
let items = [
|
|
|
- { title: build.iconic('pencil') + 'Rename', fn: () => album.setTitle([albumID]) },
|
|
|
+ { title: build.iconic('pencil') + 'Rename', fn: () => album.setTitle([ albumID ]) },
|
|
|
{ title: build.iconic('collapse-left') + 'Merge', visible: showMerge, fn: () => { basicContext.close(); contextMenu.mergeAlbum(albumID, e) } },
|
|
|
- { title: build.iconic('trash') + 'Delete', fn: () => album.delete([albumID]) }
|
|
|
+ { title: build.iconic('trash') + 'Delete', fn: () => album.delete([ albumID ]) }
|
|
|
]
|
|
|
|
|
|
$('.album[data-id="' + albumID + '"]').addClass('active')
|
|
@@ -111,7 +111,7 @@ contextMenu.albumTitle = function(albumID, e) {
|
|
|
|
|
|
}
|
|
|
|
|
|
- items.unshift({ title: build.iconic('pencil') + 'Rename', fn: () => album.setTitle([albumID]) })
|
|
|
+ items.unshift({ title: build.iconic('pencil') + 'Rename', fn: () => album.setTitle([ albumID ]) })
|
|
|
|
|
|
basicContext.show(items, e.originalEvent, contextMenu.close)
|
|
|
|
|
@@ -133,7 +133,7 @@ contextMenu.mergeAlbum = function(albumID, e) {
|
|
|
|
|
|
let title = lychee.html`<img class='cover' width='16' height='16' src='$${ this.thumbs[0] }'><div class='title'>$${ this.title }</div>`
|
|
|
|
|
|
- if (this.id!=albumID) items.push({ title, fn: () => album.merge([albumID, this.id]) })
|
|
|
+ if (this.id!=albumID) items.push({ title, fn: () => album.merge([ albumID, this.id ]) })
|
|
|
|
|
|
})
|
|
|
|
|
@@ -154,13 +154,13 @@ contextMenu.photo = function(photoID, e) {
|
|
|
|
|
|
|
|
|
let items = [
|
|
|
- { title: build.iconic('star') + 'Star', fn: () => photo.setStar([photoID]) },
|
|
|
- { title: build.iconic('tag') + 'Tags', fn: () => photo.editTags([photoID]) },
|
|
|
+ { title: build.iconic('star') + 'Star', fn: () => photo.setStar([ photoID ]) },
|
|
|
+ { title: build.iconic('tag') + 'Tags', fn: () => photo.editTags([ photoID ]) },
|
|
|
{ },
|
|
|
- { title: build.iconic('pencil') + 'Rename', fn: () => photo.setTitle([photoID]) },
|
|
|
- { title: build.iconic('layers') + 'Duplicate', fn: () => photo.duplicate([photoID]) },
|
|
|
- { title: build.iconic('folder') + 'Move', fn: () => { basicContext.close(); contextMenu.move([photoID], e) } },
|
|
|
- { title: build.iconic('trash') + 'Delete', fn: () => photo.delete([photoID]) }
|
|
|
+ { title: build.iconic('pencil') + 'Rename', fn: () => photo.setTitle([ photoID ]) },
|
|
|
+ { title: build.iconic('layers') + 'Duplicate', fn: () => photo.duplicate([ photoID ]) },
|
|
|
+ { title: build.iconic('folder') + 'Move', fn: () => { basicContext.close(); contextMenu.move([ photoID ], e) } },
|
|
|
+ { title: build.iconic('trash') + 'Delete', fn: () => photo.delete([ photoID ]) }
|
|
|
]
|
|
|
|
|
|
$('.photo[data-id="' + photoID + '"]').addClass('active')
|
|
@@ -194,7 +194,7 @@ contextMenu.photoMulti = function(photoIDs, e) {
|
|
|
contextMenu.photoTitle = function(albumID, photoID, e) {
|
|
|
|
|
|
let items = [
|
|
|
- { title: build.iconic('pencil') + 'Rename', fn: () => photo.setTitle([photoID]) }
|
|
|
+ { title: build.iconic('pencil') + 'Rename', fn: () => photo.setTitle([ photoID ]) }
|
|
|
]
|
|
|
|
|
|
let data = album.json
|
|
@@ -236,7 +236,7 @@ contextMenu.photoMore = function(photoID, e) {
|
|
|
|
|
|
contextMenu.move = function(photoIDs, e) {
|
|
|
|
|
|
- var items = []
|
|
|
+ let items = []
|
|
|
|
|
|
api.post('Album::getAll', {}, function(data) {
|
|
|
|
|
@@ -278,8 +278,8 @@ contextMenu.move = function(photoIDs, e) {
|
|
|
|
|
|
contextMenu.sharePhoto = function(photoID, e) {
|
|
|
|
|
|
- let link = photo.getViewLink(photoID),
|
|
|
- iconClass = 'ionicons'
|
|
|
+ let link = photo.getViewLink(photoID)
|
|
|
+ let iconClass = 'ionicons'
|
|
|
|
|
|
let items = [
|
|
|
{ title: `<input readonly id="link" value="${ link }">`, fn: () => {}, class: 'basicContext__item--noHover' },
|