fix double click on "Save". See #22
This commit is contained in:
parent
77aff61d70
commit
98de25c81a
File diff suppressed because one or more lines are too long
|
@ -210,6 +210,11 @@ $(document).on('ready pjax:success', function() {
|
||||||
$('#preview').data("previewing", "false");
|
$('#preview').data("previewing", "false");
|
||||||
$('.CodeMirror').fadeIn();
|
$('.CodeMirror').fadeIn();
|
||||||
|
|
||||||
|
// Save editor values
|
||||||
|
if (typeof editor !== 'undefined') {
|
||||||
|
editor.save();
|
||||||
|
}
|
||||||
|
|
||||||
var data = JSON.stringify($(this).serializeJSON()),
|
var data = JSON.stringify($(this).serializeJSON()),
|
||||||
button = $(this).find("input[type=submit]:focus");
|
button = $(this).find("input[type=submit]:focus");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue