mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-20 06:22:50 +01:00
closes #2852
This commit is contained in:
@@ -314,12 +314,13 @@ define('composer', [
|
||||
discard(post_uuid);
|
||||
return;
|
||||
}
|
||||
|
||||
var btn = $(this).prop('disabled', true);
|
||||
translator.translate('[[modules:composer.discard]]', function(translated) {
|
||||
bootbox.confirm(translated, function(confirm) {
|
||||
if (confirm) {
|
||||
discard(post_uuid);
|
||||
}
|
||||
btn.prop('disabled', false);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user