summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-ledtrig-switch/htdocs/luci-static/resources
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-ledtrig-switch/htdocs/luci-static/resources')
-rw-r--r--applications/luci-app-ledtrig-switch/htdocs/luci-static/resources/view/system/led-trigger/switch0.js18
-rw-r--r--applications/luci-app-ledtrig-switch/htdocs/luci-static/resources/view/system/led-trigger/switch1.js18
2 files changed, 36 insertions, 0 deletions
diff --git a/applications/luci-app-ledtrig-switch/htdocs/luci-static/resources/view/system/led-trigger/switch0.js b/applications/luci-app-ledtrig-switch/htdocs/luci-static/resources/view/system/led-trigger/switch0.js
new file mode 100644
index 0000000000..2f59866a6c
--- /dev/null
+++ b/applications/luci-app-ledtrig-switch/htdocs/luci-static/resources/view/system/led-trigger/switch0.js
@@ -0,0 +1,18 @@
+'use strict';
+'require form';
+
+return L.Class.extend({
+ trigger: _('switch0 (kernel)'),
+ kernel: true,
+ addFormOptions(s){
+ var o;
+
+ o = s.option(form.Value, 'port_mask', _('Switch Port Mask'));
+ o.modalonly = true;
+ o.depends('trigger', 'switch0');
+
+ o = s.option(form.Value, 'speed_mask', _('Switch Speed Mask'));
+ o.modalonly = true;
+ o.depends('trigger', 'switch0');
+ }
+});
diff --git a/applications/luci-app-ledtrig-switch/htdocs/luci-static/resources/view/system/led-trigger/switch1.js b/applications/luci-app-ledtrig-switch/htdocs/luci-static/resources/view/system/led-trigger/switch1.js
new file mode 100644
index 0000000000..7800cba227
--- /dev/null
+++ b/applications/luci-app-ledtrig-switch/htdocs/luci-static/resources/view/system/led-trigger/switch1.js
@@ -0,0 +1,18 @@
+'use strict';
+'require form';
+
+return L.Class.extend({
+ trigger: _('switch1 (kernel)'),
+ kernel: true,
+ addFormOptions(s){
+ var o;
+
+ o = s.option(form.Value, 'port_mask', _('Switch Port Mask'));
+ o.modalonly = true;
+ o.depends('trigger', 'switch1');
+
+ o = s.option(form.Value, 'speed_mask', _('Switch Speed Mask'));
+ o.modalonly = true;
+ o.depends('trigger', 'switch1');
+ }
+});