1
0
mirror of synced 2024-11-26 23:06:02 +03:00

mange disabled attr on source element. fixes #427

This commit is contained in:
Igor Vaynberg 2012-09-19 19:33:46 -07:00
parent 3cc79b410c
commit 93ed30d67a

View File

@ -855,6 +855,7 @@
this.enabled=true; this.enabled=true;
this.container.removeClass("select2-container-disabled"); this.container.removeClass("select2-container-disabled");
this.opts.element.removeAttr("disabled");
}, },
// abstract // abstract
@ -865,6 +866,7 @@
this.enabled=false; this.enabled=false;
this.container.addClass("select2-container-disabled"); this.container.addClass("select2-container-disabled");
this.opts.element.attr("disabled", "disabled");
}, },
// abstract // abstract