- Print is not public

- Public maps now are shared using REST
This commit is contained in:
Paulo Gustavo Veiga 2013-02-03 17:33:19 -03:00
parent 92849b02eb
commit 87ce3fc0a9
2 changed files with 5 additions and 1 deletions

View File

@ -223,9 +223,10 @@ mindplot.widget.Menu = new Class({
this._registerTooltip('export', $msg('EXPORT')); this._registerTooltip('export', $msg('EXPORT'));
this._addButton('print', false, false, function () { this._addButton('print', false, false, function () {
this.save(saveElem, designer, false);
var baseUrl = window.location.href.substring(0, window.location.href.lastIndexOf("c/maps/")); var baseUrl = window.location.href.substring(0, window.location.href.lastIndexOf("c/maps/"));
window.open(baseUrl + 'c/maps/' + mapId + '/print'); window.open(baseUrl + 'c/maps/' + mapId + '/print');
}); }.bind(this));
this._registerTooltip('print', $msg('PRINT')); this._registerTooltip('print', $msg('PRINT'));

View File

@ -24,8 +24,11 @@
<sec:http pattern="/c/maps/*/embed" security="none"/> <sec:http pattern="/c/maps/*/embed" security="none"/>
<sec:http pattern="/c/maps/*/try" security="none"/> <sec:http pattern="/c/maps/*/try" security="none"/>
<sec:http pattern="/c/maps/*/print" security="none"/>
<sec:http pattern="/c/maps/*/public" security="none"/> <sec:http pattern="/c/maps/*/public" security="none"/>
<sec:http pattern="/c/GCFInstall" security="none"/> <sec:http pattern="/c/GCFInstall" security="none"/>
<sec:http pattern="/c/restful/maps/*/document/xml " security="none"/>
<sec:http pattern="/c/publicview.htm" security="none"/> <sec:http pattern="/c/publicview.htm" security="none"/>
<sec:http pattern="/c/embeddedview.htm" security="none"/> <sec:http pattern="/c/embeddedview.htm" security="none"/>