selectionChange : function(viewId, selection){\r
\r
}\r
- } \r
+ },\r
+ "dl" : {\r
+ label : "Download",\r
+ icon : "org.argeo.slc.ria/media-playback-start.png",\r
+ shortcut : null,\r
+ enabled : true,\r
+ menu : "Selection",\r
+ toolbar : "selection",\r
+ callback : function(e) {\r
+ var selection = this.tree.getSelection();\r
+ if(!selection.length) return;\r
+ var jcrNode = selection[0].getJcrNode();\r
+ var url = '/org.argeo.slc.webapp/getJcrItem.jcr?path=' + jcrNode.getPath() + '&download=true';\r
+ org.argeo.ria.Application.INSTANCE.javascriptDownloadLocation(url);\r
+ },\r
+ selectionChange : function(viewId, selection){\r
+ \r
+ }\r
+ } \r
}\r
},\r
viewSelection : {\r