From 6d2582c22e9257d10cdf5b7d559a7154ffc53efc Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 25 Jun 2014 16:47:07 +0000 Subject: [PATCH] Remove added indentation by accident from commit 47388 --- etemplate/js/et2_widget_tree.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/etemplate/js/et2_widget_tree.js b/etemplate/js/et2_widget_tree.js index 9a0d800223..4a253ddf40 100644 --- a/etemplate/js/et2_widget_tree.js +++ b/etemplate/js/et2_widget_tree.js @@ -500,13 +500,13 @@ var et2_tree = et2_inputWidget.extend( // Update action // since the action ID has to = this.id, getObjectById() won't work var treeObj = egw_getAppObjectManager().getObjectById(this.id); - for(var i=0; i < treeObj.children.length; i++) + for(var i=0; i < treeObj.children.length; i++) + { + if(treeObj.children[i].id == _id) { - if(treeObj.children[i].id == _id) - { - treeObj.children.splice(i,1); - } + treeObj.children.splice(i,1); } + } }, /**