Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
4fe8d1d9
Commit
4fe8d1d9
authored
Feb 03, 2017
by
Piotr Gawron
Browse files
version info moved from customMap
parent
8bb069b6
Changes
3
Hide whitespace changes
Inline
Side-by-side
frontend-js/src/main/js/map/CustomMap.js
View file @
4fe8d1d9
...
...
@@ -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
);
};
...
...
frontend-js/src/main/js/minerva.js
View file @
4fe8d1d9
...
...
@@ -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
();
...
...
frontend-js/src/test/js/helper.js
View file @
4fe8d1d9
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment