changeset 1539:28e514c968d6

Suppress onCollectionChange event if an artifact is added to the collection to avoid loading maps twice. flys-client/trunk@3757 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 24 Jan 2012 14:58:48 +0000
parents 92f81eac034a
children cd88a257a5e6
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Jan 24 12:43:06 2012 +0000
+++ b/flys-client/ChangeLog	Tue Jan 24 14:58:48 2012 +0000
@@ -1,3 +1,10 @@
+2012-01-24  Raimund Renkert <raimund.renkert@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/CollectionView.java:
+	  Suppress onCollectionChange event if an artifact is added to the collection
+	  to avoid loading maps twice. The event is triggered by the
+	  describeCollection call.
+
 2012-01-24  Raimund Renkert <raimund.renkert@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/DistancePanel.java,
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java	Tue Jan 24 12:43:06 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java	Tue Jan 24 14:58:48 2012 +0000
@@ -596,7 +596,7 @@
 
                 public void onSuccess(Collection newCollection) {
                     GWT.log("Successfully added artifacts.");
-                    setCollection(newCollection);
+                    setCollection(newCollection, true);
                 }
             }
         );

http://dive4elements.wald.intevation.org