From 81ed37dab55a3397cc821a44c78db593a625d3a6 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 21 Jan 2014 13:39:27 +0000 Subject: [PATCH] defining and documenting "onopenstart" and "onopenend" attributes --- etemplate/js/et2_widget_tree.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/etemplate/js/et2_widget_tree.js b/etemplate/js/et2_widget_tree.js index a005a7df73..7817ffcebb 100644 --- a/etemplate/js/et2_widget_tree.js +++ b/etemplate/js/et2_widget_tree.js @@ -62,6 +62,18 @@ var et2_tree = et2_inputWidget.extend( "description": "Javascript executed when user checks a node" }, // onChange event is mapped depending on multiple to onCheck or onSelect + onopenstart: { + "name": "onOpenStart", + "type": "js", + "default": et2_no_init, + "description": "Javascript function executed when user opens a node: function(_id, _widget, _hasChildren) returning true to allow opening!" + }, + onopenend: { + "name": "onOpenEnd", + "type": "js", + "default": et2_no_init, + "description": "Javascript function executed when opening a node is finished: function(_id, _widget, _hasChildren)" + }, "image_path": { "name": "Image directory", "type": "string",