changeset 89:131e3f23a74e

Modified the URL of the 'back button' image. flys-client/trunk@1601 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 29 Mar 2011 09:45:57 +0000
parents 4d7c6a63602b
children f8c240f28c2a
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/FLYSMessages.java flys-client/src/main/java/de/intevation/flys/client/client/FLYSMessages_de.properties flys-client/src/main/java/de/intevation/flys/client/client/FLYSMessages_en.properties flys-client/src/main/java/de/intevation/flys/client/client/ui/AbstractUIProvider.java
diffstat 5 files changed, 17 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Mar 29 09:12:14 2011 +0000
+++ b/flys-client/ChangeLog	Tue Mar 29 09:45:57 2011 +0000
@@ -1,3 +1,15 @@
+2011-03-29  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/FLYSMessages_en.properties,
+	  src/main/java/de/intevation/flys/client/client/FLYSMessages_de.properties,
+	  src/main/java/de/intevation/flys/client/client/FLYSMessages.java:
+	  Modified the string that points to the 'back button' image.
+
+	* src/main/java/de/intevation/flys/client/client/ui/AbstractUIProvider.java:
+	  Modified the URL that points to the 'back button' image. Now, the
+	  base URL is taken into account as well. The button will be shown
+	  everywhere now (in every installation)!
+
 2011-03-29  Raimund Renkert <rrenkert@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/MainMenu.java: Fixed
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSMessages.java	Tue Mar 29 09:12:14 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSMessages.java	Tue Mar 29 09:45:57 2011 +0000
@@ -149,7 +149,7 @@
     @DefaultMessage("Next")
     String buttonNext();
 
-    @DefaultMessage("/images/back.png")
+    @DefaultMessage("images/back.png")
     String imageBack();
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSMessages_de.properties	Tue Mar 29 09:12:14 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSMessages_de.properties	Tue Mar 29 09:45:57 2011 +0000
@@ -47,4 +47,4 @@
 footerImressum = Impressum
 
 buttonNext = Weiter
-imageBack = /images/back_de.png
+imageBack = images/back_de.png
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSMessages_en.properties	Tue Mar 29 09:12:14 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSMessages_en.properties	Tue Mar 29 09:45:57 2011 +0000
@@ -44,4 +44,4 @@
 unitQStep = m³/s
 
 buttonNext = Next
-imageBack = /images/back_en.png
+imageBack = images/back_en.png
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/AbstractUIProvider.java	Tue Mar 29 09:12:14 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/AbstractUIProvider.java	Tue Mar 29 09:45:57 2011 +0000
@@ -140,7 +140,8 @@
      * @return the 'back' button.
      */
     protected Canvas getBackButton(final String targetState) {
-        Img back = new Img(MSG.imageBack(), 16, 16);
+        String url = GWT.getHostPageBaseURL() + MSG.imageBack();
+        Img back   = new Img(url, 16, 16);
 
         back.addClickHandler(new ClickHandler() {
             public void onClick(ClickEvent event) {

http://dive4elements.wald.intevation.org