mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 06:56:54 +08:00
Fix multiple confirm windows [SCI-3452] (#1763)
* Fix multiple confirm windows
This commit is contained in:
parent
4a753f8519
commit
d28d466dc9
1 changed files with 1 additions and 1 deletions
2
app/assets/javascripts/sitewide/tiny_mce.js
vendored
2
app/assets/javascripts/sitewide/tiny_mce.js
vendored
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue