[Dive4elements-commits] [PATCH 7 of 7] Handle special highlighting for fix analysis
Wald Commits
scm-commit at wald.intevation.org
Thu May 30 15:23:04 CEST 2013
# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1369919702 -7200
# Node ID 69f95a0163088cfab69602da03e56b66615303d8
# Parent 3ff2a4317167999c463a5fbcf34bc5dd8c0cf49a
Handle special highlighting for fix analysis.
diff -r 3ff2a4317167 -r 69f95a016308 gwt-client/src/main/webapp/images/FLYS_Karte_interactive.html
--- a/gwt-client/src/main/webapp/images/FLYS_Karte_interactive.html Thu May 30 15:08:29 2013 +0200
+++ b/gwt-client/src/main/webapp/images/FLYS_Karte_interactive.html Thu May 30 15:15:02 2013 +0200
@@ -2,9 +2,21 @@
<head>
<script type="text/javascript">
var highlighted = "";
+ function stripRiver(name) {
+ var module = getModule();
+ if (module === 'fixanalysis') {
+ if (name.contains('Donau') ||
+ name.contains('Main') ||
+ name.contains('Neckar')) {
+ return name.split(' ')[0];
+ }
+ }
+ return name;
+ }
function highlight(name){
unHighlight(highlighted);
var river;
+ name = stripRiver(name);
if (availableRiver(name)) {
river = document.getElementById(name);
}
@@ -17,10 +29,12 @@
}
}
function highlightList(name) {
- highlightRiver(name);
+ name = stripRiver(name);
+ highlightRiver(name);
}
function unHighlight(name) {
var river;
+ name = stripRiver(name);
if (availableRiver(name)) {
river = document.getElementById(name);
}
@@ -32,7 +46,8 @@
}
}
function unHighlightList(name) {
- unHighlightRiver(name);
+ name = stripRiver(name);
+ unHighlightRiver(name);
}
</script>
</head>
More information about the Dive4elements-commits
mailing list