Skip to content
Snippets Groups Projects
Commit 9bbc91f8 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

scope of export is more precise

parent b3710212
No related branches found
No related tags found
1 merge request!1279Resolve "During export as map add warning pop up"
......@@ -13,6 +13,8 @@ minerva (16.0.0~alpha.1) stable; urgency=medium
are supported (#1452, #1450, #1420)
* Small improvement: information about perfect search are stored in the url
(#1376)
* Small improvement: context menu exporting map is more precise about scope
(#1447)
* Bug fix: removing plugin that does not exist anymore does not raise an error
(#1289)
* Bug fix: broken overlays crashed minerva upgrade (#1453)
......
......@@ -109,6 +109,7 @@ ContextMenu.prototype.addOption = function (params) {
} else {
self.getElement().appendChild(option);
}
return link;
};
/**
......@@ -184,7 +185,7 @@ ContextMenu.prototype.createExportAsImageSubmenu = function () {
});
var submenu = new SubMenu({
element: li,
name: "Export as image",
name: "    as image",
customMap: self.getMap()
});
......@@ -226,7 +227,7 @@ ContextMenu.prototype.createExportAsModelSubmenu = function () {
});
var submenu = new SubMenu({
element: li,
name: "Export as map",
name: "    as map",
customMap: self.getMap()
});
......
......@@ -51,6 +51,8 @@ MapContextMenu.prototype._createMapContextMenuGui = function () {
MapContextMenu.prototype.init = function () {
var self = this;
return self.createExportAsImageSubmenu().then(function (submenu) {
var link = self.addOption({name: "Export current view:"})
$(link).css('cursor', 'default');
self.addOption({submenu: submenu});
return self.createExportAsModelSubmenu();
}).then(function (submenu) {
......
......@@ -36,6 +36,8 @@ SelectionContextMenu.prototype.constructor = SelectionContextMenu;
SelectionContextMenu.prototype.init = function () {
var self = this;
return self.createExportAsImageSubmenu().then(function (submenu) {
var link = self.addOption({name: "Export current view:"})
$(link).css('cursor', 'default');
self.addOption({submenu: submenu});
return self.createExportAsModelSubmenu();
}).then(function (submenu) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment