X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/0312b45f483d36de4769a45cb9bdd9f56cdda7ab..942d7dac932bdb6c659885aa97dd82f23ed00541:/src/editor/modules/rng/rng.js diff --git a/src/editor/modules/rng/rng.js b/src/editor/modules/rng/rng.js index fc8cd61..63bc2c2 100644 --- 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!'); + event.returnValue = txt; // FF + return txt; // Chrome } - event.returnValue = txt; // FF - return txt; // Chrome }); /* api */