Fixes: U4-2973 - View editor save button broken

This commit is contained in:
perploug
2013-10-01 11:51:19 +02:00
parent 229b770447
commit 5dd9510d69
3 changed files with 3 additions and 3 deletions

View File

@@ -37,6 +37,7 @@
codeEditorElementId: '<%= editorSource.ClientID %>',
modalUrl: "<%= IOHelper.ResolveUrl(SystemDirectories.Umbraco) %>/dialogs/editMacro.aspx"
});
//initialize it.
editViewEditor.init();

View File

@@ -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";

View File

@@ -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();
});
},