summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-ledtrig-rssi/htdocs/luci-static
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-ledtrig-rssi/htdocs/luci-static')
-rw-r--r--applications/luci-app-ledtrig-rssi/htdocs/luci-static/resources/view/system/led-trigger/rssi.js38
1 files changed, 38 insertions, 0 deletions
diff --git a/applications/luci-app-ledtrig-rssi/htdocs/luci-static/resources/view/system/led-trigger/rssi.js b/applications/luci-app-ledtrig-rssi/htdocs/luci-static/resources/view/system/led-trigger/rssi.js
new file mode 100644
index 0000000000..611adc8b1b
--- /dev/null
+++ b/applications/luci-app-ledtrig-rssi/htdocs/luci-static/resources/view/system/led-trigger/rssi.js
@@ -0,0 +1,38 @@
+'use strict';
+'require form';
+'require tools.widgets as widgets';
+
+return L.Class.extend({
+ trigger: _('rssi (service)'),
+ kernel: false,
+ addFormOptions(s){
+ var o;
+
+ o = s.option(widgets.DeviceSelect, '_rssi_iface', _('Device'));
+ o.rmempty = true;
+ o.ucioption = 'iface';
+ o.modalonly = true;
+ o.noaliases = true;
+ o.depends('trigger', 'rssi');
+
+ o = s.option(form.Value, 'minq', _('Minimal quality'));
+ o.rmempty = true;
+ o.modalonly = true;
+ o.depends('trigger', 'rssi');
+
+ o = s.option(form.Value, 'maxq', _('Maximal quality'));
+ o.rmempty = true;
+ o.modalonly = true;
+ o.depends('trigger', 'rssi');
+
+ o = s.option(form.Value, 'offset', _('Value offset'));
+ o.rmempty = true;
+ o.modalonly = true;
+ o.depends('trigger', 'rssi');
+
+ o = s.option(form.Value, 'factor', _('Multiplication factor'));
+ o.rmempty = true;
+ o.modalonly = true;
+ o.depends('trigger', 'rssi');
+ }
+});