summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2007-11-28 14:26:34 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2007-11-28 14:26:34 +0000
commit175ddbee0781495177cea4f941f2d16bf6bc2c9b (patch)
tree0c5279f61d61867bba2c68dc440365e17584234b /src
parent1c090bd2f66a23634b678701a90b801bc000a9e0 (diff)
downloadvaadin-framework-175ddbee0781495177cea4f941f2d16bf6bc2c9b.tar.gz
vaadin-framework-175ddbee0781495177cea4f941f2d16bf6bc2c9b.zip
enhanced detecting click source
svn changeset:3022/svn branch:trunk
Diffstat (limited to 'src')
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java
index 41999eddf4..cdac7ad69e 100644
--- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java
+++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java
@@ -1858,12 +1858,11 @@ public class IScrollTable extends Composite implements Table, ScrollListener,
* React on click that occur on content cells only
*/
public void onBrowserEvent(Event event) {
- String s = DOM.getElementProperty(DOM.eventGetTarget(event),
- "className");
switch (DOM.eventGetType(event)) {
case Event.ONCLICK:
- if ((CLASSNAME + "-cell-content").equals(s)) {
- ApplicationConnection.getConsole().log("Row click");
+ Element tdOrTr = DOM.getParent(DOM.eventGetTarget(event));
+ if (DOM.compare(getElement(), tdOrTr)
+ || DOM.compare(getElement(), DOM.getParent(tdOrTr))) {
if (selectMode > Table.SELECT_MODE_NONE) {
toggleSelection();
client.updateVariable(paintableId, "selected",