##// END OF EJS Templates
Load image menu on demand
neko259 -
r1816:689f98e2 default
parent child Browse files
Show More
@@ -118,7 +118,7 b' class AbstractViewer:'
118 for item in items:
118 for item in items:
119 cm_items.append(('{}: {{name: "{}", callback: function(key, opt) {{window.location="{}";}}}}')\
119 cm_items.append(('{}: {{name: "{}", callback: function(key, opt) {{window.location="{}";}}}}')\
120 .format(item['name'], item['label'], item['url']))
120 .format(item['name'], item['label'], item['url']))
121 return '<script>$.contextMenu({{trigger: "left", selector: "#file{} .file-menu", items: {{ {} }} }});</script>'.format(self.hash, ', '.join(cm_items))
121 return '<script>$.contextMenu({{trigger: "left", selector: "#file{} .file-menu", build: function($trigger, e) {{return {{items: {{ {} }} }}}}}});</script>'.format(self.hash, ', '.join(cm_items))
122
122
123
123
124 class VideoViewer(AbstractViewer):
124 class VideoViewer(AbstractViewer):
General Comments 0
You need to be logged in to leave comments. Login now