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);