Browse Source

Removed unused code

Tobias Reich 9 years ago
parent
commit
35e0627d81
2 changed files with 0 additions and 36 deletions
  1. 0 35
      src/scripts/build.coffee
  2. 0 1
      src/scripts/init.js

+ 0 - 35
src/scripts/build.coffee

@@ -233,41 +233,6 @@ build.uploadModal = (title, files) ->
 
 	return html
 
-build.contextMenu = (items) ->
-
-	html =	"""
-			<div class='contextmenu_bg'></div>
-			<div class='contextmenu'>
-				<table>
-					<tbody>
-			"""
-
-	items.forEach (item, i, items) ->
-
-		if item[0] is 'separator' and item[1] is -1
-
-			html += "<tr class='separator'></tr>"
-
-		else if item[1] is -1
-
-			html += "<tr class='no_hover'><td>#{ item[0] }</td></tr>"
-
-		else if item[2]?
-
-			html += "<tr><td onclick='#{ item[2] }; window.contextMenu.close();'>#{ item[0] }</td></tr>"
-
-		else
-
-			html += "<tr><td onclick='window.contextMenu.fns[#{ item[1] }](); window.contextMenu.close();'>#{ item[0] }</td></tr>";
-
-	html +=	"""
-					</tbody>
-				</table>
-			</div>
-			"""
-
-	return html
-
 build.tags = (tags, forView) ->
 
 	html = ''

+ 0 - 1
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 */