Fixes: U4-2973 - View editor save button broken
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
codeEditorElementId: '<%= editorSource.ClientID %>',
|
||||
modalUrl: "<%= IOHelper.ResolveUrl(SystemDirectories.Umbraco) %>/dialogs/editMacro.aspx"
|
||||
});
|
||||
|
||||
//initialize it.
|
||||
editViewEditor.init();
|
||||
|
||||
|
||||
@@ -159,8 +159,6 @@ namespace Umbraco.Web.UI.Umbraco.Settings.Views
|
||||
|
||||
|
||||
SaveButton = Panel1.Menu.NewButton();
|
||||
SaveButton.Icon = "save";
|
||||
SaveButton.OnClientClick = "doSubmit()";
|
||||
SaveButton.Text = ui.Text("save");
|
||||
SaveButton.ButtonType = MenuButtonType.Primary;
|
||||
SaveButton.ID = "save";
|
||||
|
||||
@@ -40,7 +40,8 @@
|
||||
self.changeMasterPageFile();
|
||||
});
|
||||
//bind to the save event
|
||||
this._opts.saveButton.click(function() {
|
||||
this._opts.saveButton.click(function (event) {
|
||||
event.preventDefault();
|
||||
self.doSubmit();
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user