fnp
/
fnpeditor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eb86c62
)
don't ask on unload unless document is dirty
author
Jan Szejko
<janek37@gmail.com>
Thu, 9 Feb 2017 13:53:56 +0000
(14:53 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Thu, 9 Feb 2017 13:53:56 +0000
(14:53 +0100)
src/editor/modules/rng/rng.js
patch
|
blob
|
history
diff --git
a/src/editor/modules/rng/rng.js
b/src/editor/modules/rng/rng.js
index
fc8cd61
..
63bc2c2
100644
(file)
--- a/
src/editor/modules/rng/rng.js
+++ b/
src/editor/modules/rng/rng.js
@@
-231,9
+231,9
@@
return function(sandbox) {
var txt = gettext('Do you really want to exit?');
if(documentIsDirty) {
txt += ' ' + gettext('Document contains unsaved changes!');
var txt = gettext('Do you really want to exit?');
if(documentIsDirty) {
txt += ' ' + gettext('Document contains unsaved changes!');
+ event.returnValue = txt; // FF
+ return txt; // Chrome
}
}
- event.returnValue = txt; // FF
- return txt; // Chrome
});
/* api */
});
/* api */