Skip to content

Commit

Permalink
Merge pull request #11533 from saraycp/disable-codemirror-save-button
Browse files Browse the repository at this point in the history
Disable editor's save button while it is saving
  • Loading branch information
saraycp committed Aug 27, 2021
2 parents 361cafe + 8fc9aca commit 2dcabf8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/app/assets/javascripts/webui/cm2/use-codemirror.js
Expand Up @@ -81,6 +81,7 @@ function use_codemirror(id, read_only, mode, big_editor) {
var data = textarea.data('data');
data[data['submit']] = editors[id].getValue();
data['comment'] = $("#comment_" + id).val();
$(this).prop('disabled', true);
$("#loading_" + id).attr('disabled', true).removeClass("d-none");
$.ajax({
url: textarea.data('save-url'),
Expand Down

0 comments on commit 2dcabf8

Please sign in to comment.