1
0
Fork 0
forked from forgejo/forgejo

[Feature/WIP] Confirm on editing forms (fixes #2881) (#2980)

* Add and start jQuery AreYouSure

* Update SimpleMDE to 1.10.1 for `forceSync` support

* Forgot to remove old version SimpleMDE 1.10.0

* formatting -.-
This commit is contained in:
Kim Carlbäcker 2016-04-19 22:45:28 +02:00 committed by Unknwon
parent ce36fd7a49
commit b3c05026df
7 changed files with 222 additions and 24 deletions

View file

@ -483,6 +483,7 @@ function initWiki() {
var simplemde = new SimpleMDE({
autoDownloadFontAwesome: false,
element: $edit_area[0],
forceSync: true,
previewRender: function (plainText, preview) { // Async method
setTimeout(function () {
// FIXME: still send render request when return back to edit mode
@ -1092,4 +1093,8 @@ $(window).load(function () {
break;
}
}
});
});
$(function() {
$('form').areYouSure();
});