]> source.dussan.org Git - vaadin-framework.git/commitdiff
#2009 change click handling order (compared to other variables) in Table
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 29 Aug 2008 10:13:20 +0000 (10:13 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 29 Aug 2008 10:13:20 +0000 (10:13 +0000)
svn changeset:5299/svn branch:trunk

src/com/itmill/toolkit/ui/Table.java

index 1a5fb10a67b47c7b8baefc326f1589881f4f4cbd..8dce0539e1e9e1711272f38b8764e1e810250624 100644 (file)
@@ -1575,6 +1575,8 @@ public class Table extends AbstractSelect implements Action.Container,
 
         boolean clientNeedsContentRefresh = false;
 
+        handleClickEvent(variables);
+
         disableContentRefreshing();
 
         if (!isSelectable() && variables.containsKey("selected")) {
@@ -1710,14 +1712,7 @@ public class Table extends AbstractSelect implements Action.Container,
             }
         }
 
-        // handle clicks before content refresh if content is refreshed anyway
-        if (clientNeedsContentRefresh) {
-            handleClickEvent(variables);
-            enableContentRefreshing(clientNeedsContentRefresh);
-        } else {
-            enableContentRefreshing(clientNeedsContentRefresh);
-            handleClickEvent(variables);
-        }
+        enableContentRefreshing(clientNeedsContentRefresh);
     }
 
     /**