mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Bind onchange handlers of taglist options only to magicsuggest selectionchange, avoid unwanted triggered inputWidget parent change
This commit is contained in:
parent
f529a4fae6
commit
0f32084f8d
@ -186,9 +186,9 @@ var et2_taglist = et2_selectbox.extend(
|
||||
.on("load", function() {$j('.loading',this.container).remove();});
|
||||
|
||||
// onChange
|
||||
if(this.options.onchange)
|
||||
if(this.options.onchange && typeof this.options.onchange == 'function')
|
||||
{
|
||||
$j(this.taglist).on("selectionchange", jQuery.proxy(this.change,this));
|
||||
$j(this.taglist).on("selectionchange", this.options.onchange);
|
||||
}
|
||||
|
||||
// onClick - pass more than baseWidget, so unbind it to avoid double callback
|
||||
|
Loading…
Reference in New Issue
Block a user