Author: nbelaevski
Date: 2007-11-29 22:29:42 -0500 (Thu, 29 Nov 2007)
New Revision: 4379
Modified:
branches/3.1.x/sandbox/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js
Log:
double click listener invocation fixed
Modified:
branches/3.1.x/sandbox/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js
===================================================================
---
branches/3.1.x/sandbox/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js 2007-11-30
03:03:19 UTC (rev 4378)
+++
branches/3.1.x/sandbox/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js 2007-11-30
03:29:42 UTC (rev 4379)
@@ -5,8 +5,13 @@
Richfaces.ListShuttle.prototype = {
initialize: function(targetList, sourceList, clientId, controlIds) {
- $(targetList.shuttleTable.id).observe("click", function(e)
{this.onclickHandler(window.event || e, targetList)}.bindAsEventListener(this));
- $(sourceList.shuttleTable.id).observe("click", function(e)
{this.onclickHandler(window.event || e, sourceList)}.bindAsEventListener(this));
+ sourceList._onclickHandler = sourceList.onclickHandler;
+ sourceList.onclickHandler = function(e) { this.onclickHandler(e, sourceList);
}.bindAsEventListener(this);
+ targetList._onclickHandler = targetList.onclickHandler;
+ targetList.onclickHandler = function(e) { this.onclickHandler(e, targetList);
}.bindAsEventListener(this);
+
+ //$(targetList.shuttleTable.id).observe("click", function(e)
{this.onclickHandler(window.event || e, targetList)}.bindAsEventListener(this));
+ //$(sourceList.shuttleTable.id).observe("click", function(e)
{this.onclickHandler(window.event || e, sourceList)}.bindAsEventListener(this));
this.targetList = targetList;
@@ -44,7 +49,7 @@
},
onclickHandler : function(event, component) {
- component.onclickHandler(event);
+ component._onclickHandler(event);
this.controlListManager();
Event.stop(event);
},
Show replies by date