- IE window.open does not support base href tag. Fixed.

This commit is contained in:
Paulo Gustavo Veiga
2012-08-15 21:05:44 -03:00
parent 70cebe97fc
commit dde7806b38
2 changed files with 63 additions and 57 deletions

View File

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