diff --git a/src/scripts/build.coffee b/src/scripts/build.coffee index 39f3060..cb80906 100644 --- a/src/scripts/build.coffee +++ b/src/scripts/build.coffee @@ -233,41 +233,6 @@ build.uploadModal = (title, files) -> return html -build.contextMenu = (items) -> - - html = """ -
-
- - - """ - - items.forEach (item, i, items) -> - - if item[0] is 'separator' and item[1] is -1 - - html += "" - - else if item[1] is -1 - - html += "" - - else if item[2]? - - html += "" - - else - - html += ""; - - html += """ - -
#{ item[0] }
#{ item[0] }
#{ item[0] }
-
- """ - - return html - build.tags = (tags, forView) -> html = '' diff --git a/src/scripts/init.js b/src/scripts/init.js index 66ca6ee..9ee5980 100755 --- a/src/scripts/init.js +++ b/src/scripts/init.js @@ -166,7 +166,6 @@ $(document).ready(function() { /* Context Menu */ .on('contextmenu', '.photo', function(e) { contextMenu.photo(photo.getID(), e) }) .on('contextmenu', '.album', function(e) { contextMenu.album(album.getID(), e) }) - .on('contextmenu', '.contextmenu_bg', contextMenu.close) .on(event_name, '.contextmenu_bg', contextMenu.close) /* Infobox */