Skip to content

Commit

Permalink
Fixed issue #18564: Fixed JS part for copy functionality (#2805)
Browse files Browse the repository at this point in the history
  • Loading branch information
apacheborys committed Dec 20, 2022
1 parent 39c198e commit 5092677
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -29,12 +29,12 @@
code
},
success: (data) => {
if (data) {
$('#question-title-warning').text(data);
$('#question-title-warning').removeClass('hidden');
} else {
$("#submit-copy-question").click();
}
if (data.hasOwnProperty('message') && data.message === null) {
$("#submit-copy-question").click();
} else {
$('#question-title-warning').text(data.hasOwnProperty('message') ? data.message : data);
$('#question-title-warning').removeClass('d-none');
}
},
error: (data) => {
alert('Internal error: ' + data);
Expand Down

0 comments on commit 5092677

Please sign in to comment.