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