0
0
mirror of https://github.com/openwrt/luci.git synced 2025-04-04 04:35:23 +00:00
Files
Sergey Ponomarev 22d48305af treewide: replace "var m, s, o" with "let m, s, o"
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2024-12-03 16:25:21 +01:00

25 lines
526 B
JavaScript

'use strict';
'require view';
'require form';
return view.extend({
render: function() {
let m, s, o;
m = new form.Map('apinger', _('Apinger - Down Alarm'),
_('This alarm will be fired when target does not respond for "Time"'));
s = m.section(form.GridSection, 'alarm_down');
s.anonymous = false;
s.addremove = true;
s.addbtntitle = _('Add Down Alarm');
o = s.option(form.Value, 'time', _('Time (s)'));
o.datatype = 'range(1-30)';
o.default = '1';
o.placeholder = '1';
return m.render();
},
});