projects
/
project
/
luci2
/
ui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bb42cc
)
luci2: Add missing CSS classes to LuCI2.cbi.ComboBox widget, fix attaching of event...
author
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 1 Feb 2014 18:03:55 +0000
(18:03 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 1 Feb 2014 18:03:55 +0000
(18:03 +0000)
luci2/htdocs/luci2/luci2.js
patch
|
blob
|
history
diff --git
a/luci2/htdocs/luci2/luci2.js
b/luci2/htdocs/luci2/luci2.js
index 45584e70485269a0e5a09b3897b6aac3f836d22f..c6c13a101d65b1360390010b69b39b5b16efbb5f 100644
(file)
--- a/
luci2/htdocs/luci2/luci2.js
+++ b/
luci2/htdocs/luci2/luci2.js
@@
-5660,17
+5660,19
@@
function LuCI2()
.attr('id', this.id(sid));
var t = $('<input />')
+ .addClass('form-control')
.attr('type', 'text')
.hide()
.appendTo(d);
var s = $('<select />')
+ .addClass('form-control')
.appendTo(d);
var evdata = {
self: this,
- input: t
his.validator(sid, t)
,
- select:
this.validator(sid, s)
+ input: t,
+ select:
s
};
s.change(evdata, this._change);
@@
-5680,6
+5682,9
@@
function LuCI2()
t.val(this.ucivalue(sid));
t.blur();
+ this.validator(sid, t);
+ this.validator(sid, s);
+
return d;
},