From 87ce3fc0a94951b57596ea2b619d1861a1edcfd6 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 3 Feb 2013 17:33:19 -0300 Subject: [PATCH] - Print is not public - Public maps now are shared using REST --- mindplot/src/main/javascript/widget/Menu.js | 3 ++- wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mindplot/src/main/javascript/widget/Menu.js b/mindplot/src/main/javascript/widget/Menu.js index d820fa75..fa3a645c 100644 --- a/mindplot/src/main/javascript/widget/Menu.js +++ b/mindplot/src/main/javascript/widget/Menu.js @@ -223,9 +223,10 @@ mindplot.widget.Menu = new Class({ this._registerTooltip('export', $msg('EXPORT')); this._addButton('print', false, false, function () { + this.save(saveElem, designer, false); var baseUrl = window.location.href.substring(0, window.location.href.lastIndexOf("c/maps/")); window.open(baseUrl + 'c/maps/' + mapId + '/print'); - }); + }.bind(this)); this._registerTooltip('print', $msg('PRINT')); 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 f6656d48..fb4d52bd 100644 --- a/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml +++ b/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml @@ -24,8 +24,11 @@ + + +