mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Update Parts.ContentMenuItem.Edit.cshtml
This commit is contained in:
+2
-2
@@ -20,8 +20,8 @@
|
|||||||
jQuery('#btn-@Html.FieldIdFor(m => m.ContentItemId)').trigger("orchard-admin-contentpicker-open", {
|
jQuery('#btn-@Html.FieldIdFor(m => m.ContentItemId)').trigger("orchard-admin-contentpicker-open", {
|
||||||
callback: function(data) {
|
callback: function(data) {
|
||||||
|
|
||||||
|
data = Array.isArray && Array.isArray(data) ? data[0] : data;
|
||||||
jQuery('#@Html.FieldIdFor(m => m.ContentItemId)').val(data.id);
|
jQuery('#@Html.FieldIdFor(m => m.ContentItemId)').val(data.id);
|
||||||
|
|
||||||
jQuery('#title-@Html.FieldIdFor(m => m.ContentItemId)').text(data.displayText);
|
jQuery('#title-@Html.FieldIdFor(m => m.ContentItemId)').text(data.displayText);
|
||||||
|
|
||||||
// define the menu text if it's empty
|
// define the menu text if it's empty
|
||||||
@@ -35,4 +35,4 @@
|
|||||||
});
|
});
|
||||||
//]]>
|
//]]>
|
||||||
</script>
|
</script>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user