# HG changeset patch # User Ingo Weinzierl # Date 1271179369 0 # Node ID 883b366e3b156041e2912c1353f13c4085f72ef5 # Parent 271ec4d11a9f0a89720bebab399e4a4b2e27ba07 Replaced buttons for saving/loading projects with links. gnv/trunk@926 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 271ec4d11a9f -r 883b366e3b15 gnv/ChangeLog --- a/gnv/ChangeLog Tue Apr 13 16:44:30 2010 +0000 +++ b/gnv/ChangeLog Tue Apr 13 17:22:49 2010 +0000 @@ -1,3 +1,14 @@ +2010-04-13 Ingo Weinzierl + + * src/main/webapp/styles/default.css: Adapted style of links. + + * src/main/webapp/WEB-INF/jsp/index.jsp: Replaced input buttons for + loading/saving projects with links. + + * src/main/webapp/WEB-INF/jsp/wmslayout.jsp, + src/main/webapp/WEB-INF/jsp/mainlayout.jsp: Added javascript function to + toggle the visibility of the file upload button/chooser. + 2010-04-13 Ingo Weinzierl * src/main/webapp/WEB-INF/config/templates/describe-ui.xsl: Fixed a display diff -r 271ec4d11a9f -r 883b366e3b15 gnv/src/main/webapp/WEB-INF/jsp/index.jsp --- a/gnv/src/main/webapp/WEB-INF/jsp/index.jsp Tue Apr 13 16:44:30 2010 +0000 +++ b/gnv/src/main/webapp/WEB-INF/jsp/index.jsp Tue Apr 13 17:22:49 2010 +0000 @@ -42,18 +42,20 @@ <%-- div container for project loading/saving and error messages related to this --%>
- +
- -
-
" method="post"> - "/> -
+
+ "> + | + -
" method="post" enctype="multipart/form-data"> - "/> - -
+
+
+
" method="post" enctype="multipart/form-data"> + "/> + +
+
diff -r 271ec4d11a9f -r 883b366e3b15 gnv/src/main/webapp/WEB-INF/jsp/mainlayout.jsp --- a/gnv/src/main/webapp/WEB-INF/jsp/mainlayout.jsp Tue Apr 13 16:44:30 2010 +0000 +++ b/gnv/src/main/webapp/WEB-INF/jsp/mainlayout.jsp Tue Apr 13 17:22:49 2010 +0000 @@ -50,6 +50,18 @@ ele.checked = false; } } + + function toggle(element) { + var ele = document.getElementById(element); + console.log("Element: " + ele.style.visibility); + var vis = ele.style.visibility; + if (vis != "visible") { + ele.style.visibility = "visible"; + } + else { + ele.style.visibility = "hidden"; + } + } diff -r 271ec4d11a9f -r 883b366e3b15 gnv/src/main/webapp/WEB-INF/jsp/wmslayout.jsp --- a/gnv/src/main/webapp/WEB-INF/jsp/wmslayout.jsp Tue Apr 13 16:44:30 2010 +0000 +++ b/gnv/src/main/webapp/WEB-INF/jsp/wmslayout.jsp Tue Apr 13 17:22:49 2010 +0000 @@ -49,6 +49,18 @@ map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); <%}%> } + + function toggle(element) { + var ele = document.getElementById(element); + console.log("Element: " + ele.style.visibility); + var vis = ele.style.visibility; + if (vis != "visible") { + ele.style.visibility = "visible"; + } + else { + ele.style.visibility = "hidden"; + } + } diff -r 271ec4d11a9f -r 883b366e3b15 gnv/src/main/webapp/styles/default.css --- a/gnv/src/main/webapp/styles/default.css Tue Apr 13 16:44:30 2010 +0000 +++ b/gnv/src/main/webapp/styles/default.css Tue Apr 13 17:22:49 2010 +0000 @@ -36,8 +36,8 @@ } a { - color: #00416B; - text-decoration: none; + color: #FF6600; + text-decoration: underline; } legend { @@ -309,6 +309,12 @@ background-color: #e9e8f0; } +#projectload { + float: left; + padding-left: 5px; + visibility: hidden; +} + .devide { width: 100%; height: 2px;