X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/a6919c029590f1b93e156264b063f2a9bbcff8dc..c193c33cf3e10b222a47de0b971573b66b495cfc:/src/editor/modules/rng/rng.js?ds=inline diff --git a/src/editor/modules/rng/rng.js b/src/editor/modules/rng/rng.js index e4f5c3e..fc8cd61 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); } @@ -203,9 +195,11 @@ return function(sandbox) { }, displayVersion: function(event) { /* globals window */ - var config = sandbox.getConfig(); + var config = sandbox.getConfig(), + doc = sandbox.getModule('data').getDocument(); + if(config.documentUrl) { - window.open(config.documentUrl(sandbox.getModule('data').getDocumentId(), event.version), _.uniqueId()); + window.open(config.documentUrl(doc.properties.document_id, event.version), _.uniqueId()); } else { logger.error('Unable to show version ' + event.version + ' of a document - config.documentUrl missing'); }