forked from forgejo/forgejo
* 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:
parent
ce36fd7a49
commit
b3c05026df
7 changed files with 222 additions and 24 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue