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

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

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