diff --git a/lib/gollum/frontend/public/gollum/livepreview/js/livepreview/livepreview.js b/lib/gollum/frontend/public/gollum/livepreview/js/livepreview/livepreview.js index 2dcff06d..c8926ab3 100644 --- a/lib/gollum/frontend/public/gollum/livepreview/js/livepreview/livepreview.js +++ b/lib/gollum/frontend/public/gollum/livepreview/js/livepreview/livepreview.js @@ -70,6 +70,8 @@ defaultCommitMessage = function() { commentEditorSession.setValue( defaultCommitMessage() ); $.save = function( commitMessage ) { + window.onbeforeunload = null; + var POST = "POST"; var markdown = "markdown"; var txt = editorSession.getValue(); diff --git a/lib/gollum/frontend/templates/create.mustache b/lib/gollum/frontend/templates/create.mustache index 64dbabde..0fd92af2 100644 --- a/lib/gollum/frontend/templates/create.mustache +++ b/lib/gollum/frontend/templates/create.mustache @@ -10,6 +10,8 @@