From 1c8d6e7b03988eb0ddecea115fa18daca457dcde Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 25 Feb 2016 19:29:56 +0000 Subject: [PATCH] show no more lines and left/down triangles instead of plus/minus in tree --- etemplate/js/et2_widget_tree.js | 15 ++++++++++----- .../default/images/dhtmlxtree/minus.png | Bin 0 -> 457 bytes .../templates/default/images/dhtmlxtree/plus.png | Bin 0 -> 459 bytes 3 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 phpgwapi/templates/default/images/dhtmlxtree/minus.png create mode 100644 phpgwapi/templates/default/images/dhtmlxtree/plus.png diff --git a/etemplate/js/et2_widget_tree.js b/etemplate/js/et2_widget_tree.js index 0b8f414528..87c7708e01 100644 --- a/etemplate/js/et2_widget_tree.js +++ b/etemplate/js/et2_widget_tree.js @@ -220,12 +220,12 @@ var et2_tree = et2_inputWidget.extend( if (widget.options.autoloading) { var url = widget.options.autoloading; - - //Set escaping mode to utf8, as url in + + //Set escaping mode to utf8, as url in //autoloading needs to be utf8 encoded. //For instance item id with umlaut. widget.input.setEscapingMode('utf8'); - + if (url.charAt(0) != '/' && url.substr(0,4) != 'http') { url = '/json.php?menuaction='+url; @@ -242,6 +242,11 @@ var et2_tree = et2_inputWidget.extend( } // Enable/Disable highlighting widget.input.enableHighlighting(widget.options.highlighting?true:false); + + // show no more lines and left/down triangles instead of plus/minus + widget.input.enableTreeLines(false); + widget.input.setImageArrays('plus', 'plus.png', 'plus.png', 'plus.png', 'plus.png', 'plus.png'); + widget.input.setImageArrays('minus', 'minus.png', 'minus.png', 'minus.png', 'minus.png', 'minus.png'); }, /** @@ -405,7 +410,7 @@ var et2_tree = et2_inputWidget.extend( { this.input.setCheck(this.value[i], true); // autoloading openning needs to be absolutely based on user interaction - // or open flag in folder structure, therefore, We should + // or open flag in folder structure, therefore, We should // not force it to open the node if (!this.options.autoloading) this.input.openItem(this.value[i]); } @@ -478,7 +483,7 @@ var et2_tree = et2_inputWidget.extend( var allUnchecked = this.input.getAllUnchecked().split(this.input.dlmtr); if (this.options.autoloading) { - + var res = {}; for (var i=0;i0ai&w zK~y-)-BdkK0znXcI~^*jdl>Dz58ZYpsQu!OWtyhA}1)ClC>d<2cvv_pjRR_Dz?`b2b)J~ z{bI3D)9Lii^StM6_Q=NbzVG*pF?&iW84iaCg5V_Gn=ch5g{yA2d#RM#jiRU+hT%oB zH}aFMSLJf~u~aHGzHzWsQAfU{Pv-000000NkvXXu0mjf6e7k? literal 0 HcmV?d00001 diff --git a/phpgwapi/templates/default/images/dhtmlxtree/plus.png b/phpgwapi/templates/default/images/dhtmlxtree/plus.png new file mode 100644 index 0000000000000000000000000000000000000000..c148427e85a057ce2e27a929b574a57878932607 GIT binary patch literal 459 zcmV;+0W|)JP)qE%00+MB%U$YZ;c$cy#u#ce8n5+w z-EFm6Pn*r=8o)V#j}*weX7mNh9_n;DVXxOa_B`*U-|zc*$d91(N0EvX%xqPwRnhHs zF&GSPCX>kmKqYIn(3)ix^O;#Rn@z2?e$T6tc}oBwrGzmi4*@er>-G9%xm@1u1ZC0_ zBBe5OVp&#gyWL*S=kqH7aZ!3j9+-$gL`EsK7e!Gpo6VfzaCng>hN5AAQk|cHXnnpgYE%FK002ovPDHLkV1iQq B#3cX# literal 0 HcmV?d00001