Error in gollum.js broke new page button.
This commit is contained in:
bootstraponline
2012-11-07 20:17:50 -07:00
parent f66f14b593
commit dbb6ce2f71
@@ -225,7 +225,7 @@ $(document).ready(function() {
$("#gollum-editor-submit").click( function() { window.onbeforeunload = null; } );
$("#gollum-editor-body").one('change', function(){
window.onbeforeunload = function(){ return "Leaving will not create a new page!" };
)};
});
$.GollumEditor({ NewFile: true, MarkupType: '{{default_markup}}' });
}
});