fixes serverside part of legacy pickers

This commit is contained in:
perploug
2013-11-18 11:49:11 +01:00
parent 4dbd1d3ca7
commit 9ae9a4e52d
2 changed files with 7 additions and 3 deletions

View File

@@ -10,9 +10,12 @@
section: s,
callback: function (data) {
//this returns the content object picked
jQuery(that).parent().find("input").val(data.id);
jQuery(that).parent().find(".treePickerTitle").text(data.name).show();
jQuery(that).parent().find(".clear").show();
var p = jQuery(that).parent();
p.find(".buttons").show();
p.find("input").val(data.id);
p.find(".treePickerTitle").text(data.name).show();
p.find(".clear").show();
}
});