mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Merge branch '1.9.x' into dev
# Conflicts: # src/Orchard.Web/Modules/Orchard.Layouts/Scripts/LayoutDesignerHost.js
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
(function ($) {
|
||||
var LayoutDesignerHost = function (element) {
|
||||
var LayoutDesignerHost = function (element, layoutEditor) {
|
||||
var self = this;
|
||||
this.element = element;
|
||||
this.element.data("layout-designer-host", this);
|
||||
this.editor = window.layoutEditor;
|
||||
this.editor = layoutEditor;
|
||||
this.settings = {
|
||||
antiForgeryToken: self.element.data("anti-forgery-token"),
|
||||
editorDialogTitleFormat: self.element.data("editor-dialog-title-format"),
|
||||
@@ -124,20 +124,6 @@
|
||||
// Export types.
|
||||
window.Orchard = window.Orchard || {};
|
||||
window.Orchard.Layouts = window.Orchard.Layouts || {};
|
||||
window.Orchard.Layouts.LayoutEditorHost = window.Orchard.Layouts.LayoutEditorHost || {};
|
||||
window.Orchard.Layouts.LayoutDesignerHost = LayoutDesignerHost;
|
||||
|
||||
$(function () {
|
||||
window.layoutDesignerHost = new LayoutDesignerHost($(".layout-designer"));
|
||||
$(".layout-designer").each(function (e) {
|
||||
var designer = $(this);
|
||||
var dialog = designer.find(".layout-editor-help-dialog");
|
||||
designer.find(".layout-editor-help-link").click(function (e) {
|
||||
dialog.dialog({
|
||||
modal: true,
|
||||
width: 840
|
||||
});
|
||||
e.preventDefault();
|
||||
});
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
@@ -38,8 +38,20 @@
|
||||
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))"));
|
||||
var layoutEditor = window.layoutEditor = new LayoutEditor.Editor(editorConfig, editorCanvasData);
|
||||
|
||||
window.layoutEditor = new LayoutEditor.Editor(editorConfig, editorCanvasData);
|
||||
var host = new window.Orchard.Layouts.LayoutDesignerHost($(".layout-designer"), layoutEditor);
|
||||
$(".layout-designer").each(function (e) {
|
||||
var designer = $(this);
|
||||
var dialog = designer.find(".layout-editor-help-dialog");
|
||||
designer.find(".layout-editor-help-link").click(function (e) {
|
||||
dialog.dialog({
|
||||
modal: true,
|
||||
width: 840
|
||||
});
|
||||
e.preventDefault();
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
}
|
||||
|
@@ -54,7 +54,7 @@ namespace Orchard.Redis.Caching {
|
||||
}
|
||||
|
||||
public void Remove(string key) {
|
||||
Database.KeyDelete(key);
|
||||
Database.KeyDelete(GetLocalizedKey(key));
|
||||
}
|
||||
|
||||
public void Clear() {
|
||||
|
Reference in New Issue
Block a user