From 6871f88cbb2911c2494d62c50d1311729900c366 Mon Sep 17 00:00:00 2001 From: Paulo Veiga Date: Thu, 8 Sep 2011 09:10:05 -0300 Subject: [PATCH] Minor fix. --- mindplot/src/main/javascript/MindmapDesigner.js | 4 ++-- wise-doc/src/main/webapp/html/editor.html | 4 ++-- wise-doc/src/main/webapp/js/editor.js | 4 ---- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/mindplot/src/main/javascript/MindmapDesigner.js b/mindplot/src/main/javascript/MindmapDesigner.js index a8f7e46f..0d527498 100644 --- a/mindplot/src/main/javascript/MindmapDesigner.js +++ b/mindplot/src/main/javascript/MindmapDesigner.js @@ -25,8 +25,8 @@ mindplot.MindmapDesigner = new Class({ // Dispatcher manager ... var commandContext = new mindplot.CommandContext(this); - this._actionDispatcher = new mindplot.BrixActionDispatcher(commandContext); -// this._actionDispatcher = new mindplot.LocalActionDispatcher(commandContext); +// this._actionDispatcher = new mindplot.BrixActionDispatcher(commandContext); + this._actionDispatcher = new mindplot.LocalActionDispatcher(commandContext); this._actionDispatcher.addEvent("modelUpdate", function(event) { this.fireEvent("modelUpdate", event); }.bind(this)); diff --git a/wise-doc/src/main/webapp/html/editor.html b/wise-doc/src/main/webapp/html/editor.html index 8c7b8e0c..fe7c885d 100644 --- a/wise-doc/src/main/webapp/html/editor.html +++ b/wise-doc/src/main/webapp/html/editor.html @@ -5,7 +5,7 @@ - + WiseMapping - Editor @@ -39,7 +39,7 @@ var brixReady = false; var mindReady = false; - var local = false; + var local = true; $(document).addEvent('loadcomplete', function(resource) { brixReady = resource == 'brix' ? true : brixReady; mindReady = resource == 'mind' ? true : mindReady; diff --git a/wise-doc/src/main/webapp/js/editor.js b/wise-doc/src/main/webapp/js/editor.js index dad8fdc0..396a3781 100644 --- a/wise-doc/src/main/webapp/js/editor.js +++ b/wise-doc/src/main/webapp/js/editor.js @@ -165,10 +165,6 @@ function buildDesigner() { width: parseInt(window.innerWidth) }); - if (!mindplot.collaboration.CollaborationManager.getInstance().isCollaborationFrameworkAvailable()) { - loadSingleModel(designer); - } - var menu = new mindplot.widget.Menu(designer, 'toolbar'); // If a node has focus, focus can be move to another node using the keys.