X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/a6983a6a33c76bc7ae107c604ba73c3571aed7b8..e4833347b89be4ad9534ecd3f836f0606326ee81:/src/editor/modules/rng/rng.js diff --git a/src/editor/modules/rng/rng.js b/src/editor/modules/rng/rng.js index d49b6bf..63bc2c2 100644 --- a/src/editor/modules/rng/rng.js +++ b/src/editor/modules/rng/rng.js @@ -167,14 +167,6 @@ return function(sandbox) { views.visualEditing.setView('leftColumn', sandbox.getModule('documentCanvas').getView()); }, - nodeHovered: function(canvasNode) { - commands.highlightDocumentNode(canvasNode); - }, - - nodeBlured: function(canvasNode) { - commands.dimDocumentNode(canvasNode); - }, - selectionChanged: function(selection) { commands.refreshCanvasSelection(selection); } @@ -239,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 */