Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java @ 599:1dbffe4c6d12
Implemented the RPC stubs to set the TTL and name of a collection and to delete an existing collection.
flys-client/trunk@2203 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 22 Jun 2011 12:50:20 +0000 |
parents | 031357c3e23e |
children | 347cf4a5a486 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java Wed Jun 22 11:47:07 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java Wed Jun 22 12:50:20 2011 +0000 @@ -433,10 +433,6 @@ GWT.log("Received " + num + " user collections."); - if (num == 0) { - return; - } - updateGrid(collections); } } @@ -456,6 +452,10 @@ protected void updateGrid(Collection[] collections) { clearGrid(); + if (collections == null || collections.length == 0) { + return; + } + for (Collection c: collections) { grid.addData(new CollectionRecord(c)); }