From 35e0627d81bb07d005178a73436f5544d047459f Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sun, 30 Nov 2014 00:28:38 +0100 Subject: [PATCH] Removed unused code --- src/scripts/build.coffee | 35 ----------------------------------- src/scripts/init.js | 1 - 2 files changed, 36 deletions(-) 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 */