fix double click on "Save". See #22
This commit is contained in:
1 parent
77aff61d70
commit
98de25c81a
2 files changed
+6
-1
No files matched your search
@@ -210,6 +210,11 @@ $(document).on('ready pjax:success', function() {
|
||||
$('#preview').data("previewing", "false");
|
||||
$('.CodeMirror').fadeIn();
|
||||
|
||||
// Save editor values
|
||||
if (typeof editor !== 'undefined') {
|
||||
editor.save();
|
||||
}
|
||||
|
||||
var data = JSON.stringify($(this).serializeJSON()),
|
||||
button = $(this).find("input[type=submit]:focus");
|
||||
|
||||
|
||||
Reference in new issue
Block a user