From ed08b8c00b068f93343c4a47a1bf0616ab95de99 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 14 Mar 2012 23:04:43 +0100 Subject: [PATCH] MINOR Don't auto-expand nodes on TreeDropdownField, as it makes a gazillion ajax requests on sufficiently large trees (and gets nodes in chunks of 30) (fixes #6879) --- javascript/TreeDropdownField.js | 1 - 1 file changed, 1 deletion(-) diff --git a/javascript/TreeDropdownField.js b/javascript/TreeDropdownField.js index 588475863..d4bb294c8 100644 --- a/javascript/TreeDropdownField.js +++ b/javascript/TreeDropdownField.js @@ -155,7 +155,6 @@ var val = self.getValue(), selectNode = treeHolder.find('*[data-id="' + val + '"]'), currentNode = data.inst.get_selected(); if(val && selectNode != currentNode) data.inst.select_node(selectNode); - data.inst.open_all(); firstLoad = false; if(callback) callback.apply(self); })