From 4d12803a0eaad3d7529549cda83adfcae290bf7b Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 4 Jan 2012 17:47:39 +0100 Subject: [PATCH] MINOR Quoting jQuery selectors in TreeDropdownField.js to allow for non-numeric identifiers --- javascript/TreeDropdownField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/TreeDropdownField.js b/javascript/TreeDropdownField.js index 41ec90ecd..e7bdf22e6 100644 --- a/javascript/TreeDropdownField.js +++ b/javascript/TreeDropdownField.js @@ -133,7 +133,7 @@ .jstree('destroy') .bind('loaded.jstree', function(e, data) { var val = self.getValue(); - if(val) data.inst.select_node(treeHolder.find('*[data-id=' + val + ']')); + if(val) data.inst.select_node(treeHolder.find('*[data-id="' + val + '"]')); data.inst.open_all(); firstLoad = false; if(callback) callback.apply(self);