@@ -225,7 +225,7 @@ $(document).ready(function() {
|
|||||||
$("#gollum-editor-submit").click( function() { window.onbeforeunload = null; } );
|
$("#gollum-editor-submit").click( function() { window.onbeforeunload = null; } );
|
||||||
$("#gollum-editor-body").one('change', function(){
|
$("#gollum-editor-body").one('change', function(){
|
||||||
window.onbeforeunload = function(){ return "Leaving will not create a new page!" };
|
window.onbeforeunload = function(){ return "Leaving will not create a new page!" };
|
||||||
)};
|
});
|
||||||
$.GollumEditor({ NewFile: true, MarkupType: '{{default_markup}}' });
|
$.GollumEditor({ NewFile: true, MarkupType: '{{default_markup}}' });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user