mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Add onchange event handler
This commit is contained in:
parent
41242004e0
commit
8045127da8
@ -309,7 +309,11 @@ define(function(require, exports, module) {
|
||||
value: options.path
|
||||
? createBind(options.path)
|
||||
: (options.defaultValue || ""),
|
||||
realtime: typeof options.realtime !== "undefined" ? options.realtime : 1
|
||||
realtime: typeof options.realtime !== "undefined" ? options.realtime : 1,
|
||||
onafterchange: function(e) {
|
||||
if (options.onchange)
|
||||
options.onchange({ value: e.value });
|
||||
},
|
||||
})
|
||||
];
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user