Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
core
Commits
a8c17c0d
Commit
a8c17c0d
authored
7 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
when clicking on drug last drug name was used (not the current)
parent
0556d226
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!89
Resolve "Drugs - Show all - content and alignment"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend-js/src/main/js/map/window/AbstractInfoWindow.js
+16
-15
16 additions, 15 deletions
frontend-js/src/main/js/map/window/AbstractInfoWindow.js
with
16 additions
and
15 deletions
frontend-js/src/main/js/map/window/AbstractInfoWindow.js
+
16
−
15
View file @
a8c17c0d
...
@@ -32,19 +32,17 @@ function AbstractInfoWindow(params) {
...
@@ -32,19 +32,17 @@ function AbstractInfoWindow(params) {
var
onOverlayFullViewChanged
=
function
(
e
)
{
var
onOverlayFullViewChanged
=
function
(
e
)
{
var
self
=
e
.
object
;
var
self
=
e
.
object
;
// first change the content of the element
// first change the content of the element
return
self
.
update
().
then
(
return
self
.
update
().
then
(
function
()
{
function
()
{
if
(
e
.
newVal
)
{
if
(
e
.
newVal
)
{
var
element
=
new
IdentifiedElement
({
var
element
=
new
IdentifiedElement
({
objectId
:
self
.
getElementId
(),
objectId
:
self
.
getElementId
(),
modelId
:
self
.
getCustomMap
().
getId
(),
modelId
:
self
.
getCustomMap
().
getId
(),
type
:
self
.
getElementType
()
type
:
self
.
getElementType
()
});
return
self
.
getCustomMap
().
getTopMap
().
retrieveOverlayDetailDataForElement
(
element
,
self
.
getOverlayFullViewArray
());
}
});
});
var
topMap
=
self
.
getCustomMap
().
getTopMap
();
return
topMap
.
retrieveOverlayDetailDataForElement
(
element
,
self
.
getOverlayFullViewArray
());
}
});
};
};
...
@@ -480,6 +478,11 @@ AbstractInfoWindow.prototype._createTableForTargetDiv = function(data, overlay)
...
@@ -480,6 +478,11 @@ AbstractInfoWindow.prototype._createTableForTargetDiv = function(data, overlay)
table
.
appendChild
(
header
);
table
.
appendChild
(
header
);
var
row
;
var
row
;
var
onclick
=
function
()
{
// ';' enforces single query (in case there are ',' characters in the name)
return
overlay
.
searchByQuery
(
this
.
innerHTML
+
"
;
"
);
};
var
count
=
0
;
var
count
=
0
;
for
(
var
searchId
in
data
)
{
for
(
var
searchId
in
data
)
{
if
(
data
.
hasOwnProperty
(
searchId
))
{
if
(
data
.
hasOwnProperty
(
searchId
))
{
...
@@ -501,9 +504,7 @@ AbstractInfoWindow.prototype._createTableForTargetDiv = function(data, overlay)
...
@@ -501,9 +504,7 @@ AbstractInfoWindow.prototype._createTableForTargetDiv = function(data, overlay)
}
}
var
link
=
Functions
.
createElement
({
var
link
=
Functions
.
createElement
({
type
:
"
a
"
,
type
:
"
a
"
,
onclick
:
function
(
drug
)
{
onclick
:
onclick
,
return
overlay
.
searchByQuery
(
nameContent
);
},
href
:
"
#
"
,
href
:
"
#
"
,
content
:
nameContent
,
content
:
nameContent
,
});
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment