Fix multiple confirm windows [SCI-3452] (#1763)

* Fix multiple confirm windows
This commit is contained in:
aignatov-bio 2019-05-14 16:25:34 +02:00 committed by GitHub
parent 4a753f8519
commit d28d466dc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -253,7 +253,7 @@ $(document).on('turbolinks:before-visit', function(e) {
_.each(tinyMCE.editors, function(editor) { _.each(tinyMCE.editors, function(editor) {
if (editor.isNotDirty === false) { if (editor.isNotDirty === false) {
if (confirm(I18n.t('tiny_mce.leaving_warning'))) { if (confirm(I18n.t('tiny_mce.leaving_warning'))) {
return true; return false;
} }
e.preventDefault(); e.preventDefault();
return false; return false;