fixes serverside part of legacy pickers
This commit is contained in:
@@ -199,6 +199,7 @@ namespace umbraco.uicontrols.TreePicker
|
||||
ItemTitle.Style.Add(HtmlTextWriterStyle.FontWeight, "bold");
|
||||
ItemTitle.Attributes.Add("class", "treePickerTitle"); // solely for styling, e.g. with an underline or dotted border, etc.
|
||||
ButtonContainer.Controls.Add(ItemTitle);
|
||||
ButtonContainer.Attributes.Add("class", "buttons");
|
||||
ButtonContainer.Controls.Add(new LiteralControl(" "));
|
||||
ButtonContainer.Controls.Add(new LiteralControl(" "));
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user