3 'require shadowsocks-libev as ss';
5 function startsWith(str, search) {
6 return str.substring(0, search.length) === search;
13 m = new form.Map('shadowsocks-libev', _('Remote Servers'),
14 _('Definition of remote shadowsocks servers. \
15 Disable any of them will also disable instances referring to it.'));
17 s = m.section(form.GridSection, 'server');
20 o = s.option(form.Flag, 'disabled', _('Disable'));
27 addFooter: function() {
29 if (startsWith(location.hash, p)) {
30 var section_id = location.hash.substring(p.length);
31 var editBtn = document.querySelector('#cbi-shadowsocks-libev-' + section_id + ' button.cbi-button-edit');
35 return this.super('addFooter', arguments);