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

tabs fixed in export

parent a772c09d
No related branches found
No related tags found
1 merge request!93Resolve "export should use API"
...@@ -24,6 +24,7 @@ var Functions = require('./Functions'); ...@@ -24,6 +24,7 @@ var Functions = require('./Functions');
function Export(options) { function Export(options) {
var self = this; var self = this;
self._panels = []; self._panels = [];
self._tabIdCount = 0;
if (!(options instanceof CustomMapOptions)) { if (!(options instanceof CustomMapOptions)) {
options = new CustomMapOptions(options); options = new CustomMapOptions(options);
} }
...@@ -90,7 +91,7 @@ Export.prototype.addTab = function(params, navElement, contentElement) { ...@@ -90,7 +91,7 @@ Export.prototype.addTab = function(params, navElement, contentElement) {
var name = params.name; var name = params.name;
var tabId = "left_panel_ab_" + this._tabIdCount; var tabId = "export_panel_tab_" + this._tabIdCount;
self._tabIdCount++; self._tabIdCount++;
var navClass = ''; var navClass = '';
...@@ -130,7 +131,7 @@ Export.prototype.addTab = function(params, navElement, contentElement) { ...@@ -130,7 +131,7 @@ Export.prototype.addTab = function(params, navElement, contentElement) {
this._panels.push(new params.panelClass({ this._panels.push(new params.panelClass({
element : contentDiv, element : contentDiv,
project : self.getProject(), project : self.getProject(),
configuration: self.getConfiguration(), configuration : self.getConfiguration(),
})); }));
}; };
......
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