From 4c634fefecc876083ba88ef8132879bbedef03ca Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Thu, 5 Apr 2012 00:25:34 -0300 Subject: [PATCH] Fix login redirection when there is not enoght permisions. --- wise-editor/src/main/webapp/c/export.htm | 2 -- wise-editor/src/main/webapp/js/editor.js | 6 +++--- .../src/main/webapp/WEB-INF/wisemapping-security.xml | 10 ++++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/wise-editor/src/main/webapp/c/export.htm b/wise-editor/src/main/webapp/c/export.htm index c0017ee0..033bea14 100644 --- a/wise-editor/src/main/webapp/c/export.htm +++ b/wise-editor/src/main/webapp/c/export.htm @@ -109,8 +109,6 @@ // Finally, submit map ... form.submit(); - - MooDialog.Request.active.close(); }); diff --git a/wise-editor/src/main/webapp/js/editor.js b/wise-editor/src/main/webapp/js/editor.js index dc6d7c48..a784e3b5 100644 --- a/wise-editor/src/main/webapp/js/editor.js +++ b/wise-editor/src/main/webapp/js/editor.js @@ -26,13 +26,13 @@ function buildDesigner(options) { // Register load events ... designer = new mindplot.Designer(options, container); designer.addEvent('loadSuccess', function() { - window.waitDialog.close.delay(1000,window.waitDialog); + window.waitDialog.close.delay(1000, window.waitDialog); window.waitDialog = null; }); window.onerror = function(e) { if (window.waitDialog) { - window.waitDialog.close.delay(1000,window.waitDialog); + window.waitDialog.close.delay(1000, window.waitDialog); window.waitDialog = null; } errorDialog.show(); @@ -56,7 +56,7 @@ function buildDesigner(options) { // Register toolbar event ... if ($('toolbar')) { - var menu = new mindplot.widget.Menu(designer, 'toolbar', ""); + var menu = new mindplot.widget.Menu(designer, 'toolbar', options.mapId, ""); // If a node has focus, focus can be move to another node using the keys. designer._cleanScreen = function() { diff --git a/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml b/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml index dcc4a52e..e75a997e 100644 --- a/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml +++ b/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml @@ -39,12 +39,13 @@ - + - - @@ -62,4 +63,5 @@ + \ No newline at end of file