MINOR Quoting jQuery selectors in TreeDropdownField.js to allow for non-numeric identifiers

This commit is contained in:
Ingo Schommer 2012-01-04 17:47:39 +01:00
parent c10ebe04da
commit 4d12803a0e

View File

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