Author: konstantin.mishin
Date: 2007-10-26 09:41:35 -0400 (Fri, 26 Oct 2007)
New Revision: 3565
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/utils/Utils.js
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Selection.js
Log:
RF-1248
Modified: trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/utils/Utils.js
===================================================================
---
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/utils/Utils.js 2007-10-26
13:27:34 UTC (rev 3564)
+++
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/utils/Utils.js 2007-10-26
13:41:35 UTC (rev 3565)
@@ -43,7 +43,10 @@
var src = request.getElementById(id);
if(target && src) {
- Utils.DOM.Event.removeListeners(target);
+ var cells = target.cells;
+ for(var i = 0; i < cells.length; i++) {
+ Utils.DOM.Event.removeListeners(cells[i]);
+ }
if (ClientUILib.isIE) {
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Selection.js
===================================================================
---
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Selection.js 2007-10-26
13:27:34 UTC (rev 3564)
+++
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Selection.js 2007-10-26
13:41:35 UTC (rev 3565)
@@ -303,7 +303,11 @@
},
addListener: function(element, rowIndex) {
- Utils.DOM.Event.observe(element, "click",
this.processClick.bindAsEventListener(this, rowIndex));
+ var listener = this.processClick.bindAsEventListener(this, rowIndex);
+ var cells = element.cells;
+ for(var i = 0; i < cells.length; i++) {
+ Utils.DOM.Event.observe(cells[i], "click", listener);
+ }
},
/* getGridSelection: function() {