Stop taglist's ancestor change event from bubbling on taglist

This commit is contained in:
Hadi Nategh 2014-12-16 17:06:42 +00:00
parent 000705d221
commit 9e768dcaac

View File

@ -185,6 +185,10 @@ var et2_taglist = et2_selectbox.extend(
.on("beforeload", function() {this.container.prepend('<div class="ui-icon loading"/>');}) .on("beforeload", function() {this.container.prepend('<div class="ui-icon loading"/>');})
.on("load", function() {$j('.loading',this.container).remove();}); .on("load", function() {$j('.loading',this.container).remove();});
// Unbind change handler of widget's ancestor to stop it from bubbling
// taglist has its own onchange
$j(this.getDOMNode()).unbind('change.et2_inputWidget');
// onChange // onChange
if(this.options.onchange && typeof this.options.onchange == 'function') if(this.options.onchange && typeof this.options.onchange == 'function')
{ {