Commit 4fe8d1d9 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

version info moved from customMap

parent 8bb069b6
......@@ -133,11 +133,6 @@ CustomMap.prototype.createBelt = function() {
this.divBelt = document.createElement('DIV');
this.divBelt.className = "headerBelt";
var controlText = document.createElement('div');
controlText.className = "headerTextBold";
controlText.innerHTML = this.getProject().getName();
this.divBelt.appendChild(controlText);
this.getGoogleMap().controls[google.maps.ControlPosition.TOP_LEFT].push(this.divBelt);
};
......
......@@ -259,6 +259,13 @@ function create(params) {
}
google.maps.event.trigger(result.getGoogleMap(), 'resize');
};
var project = params.project;
if (project===undefined) {
project = params.getProject();
}
document.getElementsByName("versionDiv")[0].innerHTML=project.getVersion();
if (ServerConnector.getSessionData().getShowComments()) {
result.getControl(ControlType.COMMENT_CHECKBOX).checked=true;
return result.refreshComments();
......
......@@ -34,6 +34,10 @@ Helper.prototype.createMenuDiv = function() {
var hideDiv = document.createElement("div");
result.appendChild(hideDiv);
var versionDiv = document.createElement("div");
result.setAttribute("name", "versionDiv");
result.appendChild(versionDiv);
var button = document.createElement("button");
button.setAttribute("name", "hideButton")
hideDiv.appendChild(button);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment