diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/default-on.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/default-on.js index b9713cef1c..10bf7d3238 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/default-on.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/default-on.js @@ -1,11 +1,8 @@ 'use strict'; 'require baseclass'; -'require form'; return baseclass.extend({ trigger: _('Always on (kernel: default-on)'), kernel: true, - addFormOptions(s){ - var o; - } + addFormOptions: function(s) {} }); diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/heartbeat.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/heartbeat.js index 9050063bf2..5a12575084 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/heartbeat.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/heartbeat.js @@ -4,7 +4,5 @@ return baseclass.extend({ trigger: _('Heartbeat interval (kernel: heartbeat)'), kernel: true, - addFormOptions(s){ - var o; - } + addFormOptions: function(s) {} }); diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/netdev.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/netdev.js index 692c887ea4..c7cefbb0cb 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/netdev.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/netdev.js @@ -6,7 +6,7 @@ return baseclass.extend({ trigger: _("Network device activity (kernel: netdev)"), kernel: true, - addFormOptions(s){ + addFormOptions: function(s) { var o; o = s.option(widgets.DeviceSelect, '_net_dev', _('Device')); diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/none.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/none.js index 8542a6cda7..361084f4cf 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/none.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/none.js @@ -1,10 +1,11 @@ 'use strict'; +'require form'; 'require baseclass'; return baseclass.extend({ trigger: _('Always off (kernel: none)'), kernel: true, - addFormOptions(s){ + addFormOptions: function(s) { var o; o = s.option(form.Flag, 'default', _('Default state')); diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/timer.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/timer.js index 1ec362b601..43d26613b1 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/timer.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/timer.js @@ -5,7 +5,7 @@ return baseclass.extend({ trigger: _('Custom flash interval (kernel: timer)'), kernel: true, - addFormOptions(s){ + addFormOptions: function(s) { var o; o = s.option(form.Value, 'delayon', _('On-State Delay'));