X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=server%2Forg.argeo.slc.ria%2Fsrc%2Fargeo-ria-lib%2Fjcr%2Fclass%2Forg%2Fargeo%2Fjcr%2Fria%2Fviews%2FTreeView.js;h=8b055e06146d79d0a26afd671057853bacee2192;hb=3fa6f9082cb27ae94109d1de5013e88dc9cb895f;hp=9fd2e163cd452a5005e0ef7af652e6084c8cfb97;hpb=40c5f7480c6339a2173454b90d59ee92e4f6e95f;p=gpl%2Fargeo-slc.git diff --git a/server/org.argeo.slc.ria/src/argeo-ria-lib/jcr/class/org/argeo/jcr/ria/views/TreeView.js b/server/org.argeo.slc.ria/src/argeo-ria-lib/jcr/class/org/argeo/jcr/ria/views/TreeView.js index 9fd2e163c..8b055e061 100644 --- a/server/org.argeo.slc.ria/src/argeo-ria-lib/jcr/class/org/argeo/jcr/ria/views/TreeView.js +++ b/server/org.argeo.slc.ria/src/argeo-ria-lib/jcr/class/org/argeo/jcr/ria/views/TreeView.js @@ -14,8 +14,8 @@ qx.Class.define("org.argeo.jcr.ria.views.TreeView", { icon : "org.argeo.slc.ria/media-playback-start.png", shortcut : null, enabled : true, - menu : "Context", - toolbar : "context", + menu : "Zoom", + toolbar : null, callback : function(e) { var selection = this.tree.getSelection(); if(!selection.length) return; @@ -38,8 +38,8 @@ qx.Class.define("org.argeo.jcr.ria.views.TreeView", { icon : "org.argeo.slc.ria/media-playback-start.png", shortcut : null, enabled : true, - menu : "Context", - toolbar : "context", + menu : "Zoom", + toolbar : null, submenu : [], callback : function(e) { }, @@ -69,7 +69,76 @@ qx.Class.define("org.argeo.jcr.ria.views.TreeView", { } this.setMenu(pathes); } - } + }, + "refresh" : { + label : "Refresh", + icon : "org.argeo.slc.ria/media-playback-start.png", + shortcut : null, + enabled : true, + menu : "Selection", + toolbar : "selection", + callback : function(e) { + var selection = this.tree.getSelection(); + if(!selection.length) return; + var jcrNode = selection[0].getJcrNode(); + var children = jcrNode.getChildren(); + for(var i=0;i