Author: konstantin.mishin
Date: 2007-12-22 11:43:18 -0500 (Sat, 22 Dec 2007)
New Revision: 4990
Modified:
branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js
Log:
RF-1592
Modified:
branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js
===================================================================
---
branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js 2007-12-22
16:05:50 UTC (rev 4989)
+++
branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js 2007-12-22
16:43:18 UTC (rev 4990)
@@ -20,7 +20,7 @@
$super(template);
// register event handlers
- this.eventSepDblClick = this.OnSepDblClick.bindAsEventListener(this);
+ this.eventSepClick = this.OnSepClick.bindAsEventListener(this);
this.eventSepMouseDown = this.OnSepMouseDown.bindAsEventListener(this);
this.eventSepMouseUp = this.OnSepMouseUp.bindAsEventListener(this);
this.eventSepMouseMove = this.OnSepMouseMove.bindAsEventListener(this);
@@ -151,7 +151,7 @@
columns[j].sep = new ClientUI.common.box.InlineBox(details[0], null, true);
columns[j].sep.getElement().columnIndex = j;
if(!columns[j].fixedWidth) {
- Event.observe(columns[j].sep.getElement(), 'dblclick',
this.eventSepDblClick);
+ Event.observe(columns[j].sep.getElement(), 'click', this.eventSepClick);
Event.observe(columns[j].sep.getElement(), 'mousedown',
this.eventSepMouseDown);
}
else {
@@ -199,7 +199,7 @@
columns[j].sep = new ClientUI.common.box.InlineBox(details[0], null, true);
columns[j].sep.getElement().columnIndex = j;
if(!columns[j].fixedWidth) {
- Event.observe(columns[j].sep.getElement(), 'dblclick',
this.eventSepDblClick);
+ Event.observe(columns[j].sep.getElement(), 'click', this.eventSepClick);
Event.observe(columns[j].sep.getElement(), 'mousedown',
this.eventSepMouseDown);
}
else {
@@ -361,8 +361,8 @@
Event.stop(event);
}
},
- OnSepDblClick: function(event) {
- ClientUILib.log(ClientUILogger.INFO, "OnSepDblClick");
+ OnSepClick: function(event) {
+ Event.stop(event);
},
_showSplitter: function(index) {
if(!this.columnSplitter) {