mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Wait for document ready before calling LayoutEditor constructor
This commit is contained in:
parent
c8b7c64d93
commit
43d8b1a803
@ -39,12 +39,12 @@
|
||||
return "@Url.Action("Get", "Template", new { area = "Orchard.Layouts" })" + "/" + templateName;
|
||||
}
|
||||
});
|
||||
(function () {
|
||||
jQuery(function () {
|
||||
var editorConfig = JSON.parse(LayoutEditor.decode("@Html.Raw(Url.Encode(Model.ConfigurationData))"));
|
||||
var editorCanvasData = JSON.parse(LayoutEditor.decode("@Html.Raw(Url.Encode(Model.Data))"));
|
||||
|
||||
window.layoutEditor = new LayoutEditor.Editor(editorConfig, editorCanvasData);
|
||||
})(jQuery);
|
||||
});
|
||||
</script>
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user