mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 18:08:02 +02:00
reverted only binding if onclick method is set to allways bind again (because eg. et2_button needs bind and fails to work) and only setting et2_clickable, if we have an onclick
This commit is contained in:
parent
00fb069dc2
commit
f10fc199a0
@ -199,11 +199,12 @@ var et2_baseWidget = et2_DOMWidget.extend(et2_IAligned,
|
|||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
|
|
||||||
// Add the binding for the click handler
|
// Add the binding for the click handler
|
||||||
if (this.node && typeof this.onclick == 'function')
|
if (this.node)
|
||||||
{
|
{
|
||||||
$j(this.node).bind("click.et2_baseWidget", this, function(e) {
|
$j(this.node).bind("click.et2_baseWidget", this, function(e) {
|
||||||
return e.data.click.call(e.data, this);
|
return e.data.click.call(e.data, this);
|
||||||
}).addClass('et2_clickable');
|
});
|
||||||
|
if (typeof this.onclick == 'function') $j(this.node).addClass('et2_clickable');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update the statustext
|
// Update the statustext
|
||||||
|
Loading…
x
Reference in New Issue
Block a user