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 b79a73ac..2dcff06d 100644 --- a/lib/gollum/frontend/public/gollum/livepreview/js/livepreview/livepreview.js +++ b/lib/gollum/frontend/public/gollum/livepreview/js/livepreview/livepreview.js @@ -1,4 +1,6 @@ (function () { +window.onbeforeunload = function(){ return "Leaving Live Preview will discard all edits!" }; + var converter = Markdown.getSanitizingConverter(); var editor = ace.edit("editor"); var editorSession = editor.getSession(); diff --git a/lib/gollum/frontend/templates/create.mustache b/lib/gollum/frontend/templates/create.mustache index c24c09ae..64dbabde 100644 --- a/lib/gollum/frontend/templates/create.mustache +++ b/lib/gollum/frontend/templates/create.mustache @@ -9,9 +9,10 @@ -{{something}} \ No newline at end of file +{{something}} diff --git a/lib/gollum/frontend/templates/edit.mustache b/lib/gollum/frontend/templates/edit.mustache index 014c719a..527eaa83 100644 --- a/lib/gollum/frontend/templates/edit.mustache +++ b/lib/gollum/frontend/templates/edit.mustache @@ -11,7 +11,8 @@