luci-base: ui.js: fix event binding for UISelect
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
fd35e9a226
commit
86fcf91633
1 changed files with 2 additions and 2 deletions
|
@ -287,8 +287,8 @@ var UISelect = UIElement.extend({
|
||||||
this.node = frameEl;
|
this.node = frameEl;
|
||||||
|
|
||||||
if (this.options.widget == 'select') {
|
if (this.options.widget == 'select') {
|
||||||
this.setUpdateEvents(frameEl, 'change', 'click', 'blur');
|
this.setUpdateEvents(frameEl.firstChild, 'change', 'click', 'blur');
|
||||||
this.setChangeEvents(frameEl, 'change');
|
this.setChangeEvents(frameEl.firstChild, 'change');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var radioEls = frameEl.querySelectorAll('input[type="radio"]');
|
var radioEls = frameEl.querySelectorAll('input[type="radio"]');
|
||||||
|
|
Loading…
Reference in a new issue