Author: vmolotkov
Date: 2008-03-04 11:24:47 -0500 (Tue, 04 Mar 2008)
New Revision: 6541
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
Log:
button handling
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
===================================================================
---
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-03-04
16:03:46 UTC (rev 6540)
+++
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-03-04
16:24:47 UTC (rev 6541)
@@ -2,9 +2,9 @@
Richfaces.InplaceSelect = Class.create(Richfaces.InplaceInput, {
initialize : function($super, listObj, clientId, temValueKeepId, valueKeepId, tabberId,
strutId, attributes, events, classes, barParams, buttonId) {
this.comboList = listObj;
+ this.button = $(buttonId);
$super(clientId, temValueKeepId, valueKeepId, tabberId, strutId, attributes, events,
classes, barParams);
this.clickOnBar = false;
- this.button = $(buttonId);
},
initHandlers : function($super) {
@@ -12,6 +12,8 @@
this.tempValueKeeper.observe("click",
function(e){this.tempKeeperClickHandler(e);}.bindAsEventListener(this));
this.tempValueKeeper.observe("keydown",
function(e){this.tmpValueKeyDownHandlerIn(e);}.bindAsEventListener(this));
+ this.button.observe("mousedown",
function(e){this.buttonClickHandler(e);}.bindAsEventListener(this));
+
this.comboList.listParent.observe("mousedown",
function(e){this.listMousedownHandler(e);}.bindAsEventListener(this));
this.comboList.listParent.observe("mousemove",
function(e){this.listMouseMoveHandler(e)}.bindAsEventListener(this));
this.comboList.listParent.observe("click",
function(e){this.listClickHandler(e);}.bindAsEventListener(this));
@@ -50,6 +52,11 @@
this.comboList.showWithDelay();
},
+ buttonClickHandler : function(e) {
+ this.tempKeeperClickHandler();
+ Event.stop(e);
+ },
+
tmpValueBlurHandler : function($super, event) {
$super(event);
Show replies by date