mirror of
https://github.com/gSpotx2f/ruantiblock_openwrt.git
synced 2026-05-14 14:40:58 +00:00
luci-app-ruantiblock: fixed service.js.
This commit is contained in:
@@ -32,7 +32,7 @@ return view.extend({
|
||||
|
||||
dnsmasqCfgDirsSelect: null,
|
||||
|
||||
cancelButton : E('button', {
|
||||
cancelButton : E('button', {
|
||||
'id' : 'btn_cancel',
|
||||
'class': btn_style_neutral,
|
||||
'click': ui.hideModal,
|
||||
@@ -64,6 +64,21 @@ return view.extend({
|
||||
};
|
||||
};
|
||||
|
||||
if(this.currentDnsmasqCfgDir) {
|
||||
let match = false;
|
||||
for(let i of available_cfg_dirs) {
|
||||
if(i[1] == this.currentDnsmasqCfgDir) {
|
||||
match = true;
|
||||
break;
|
||||
};
|
||||
};
|
||||
if(!match) {
|
||||
available_cfg_dirs.unshift(
|
||||
[ `${this.currentDnsmasqCfgDir} [ UCI ]`, this.currentDnsmasqCfgDir ]
|
||||
);
|
||||
};
|
||||
};
|
||||
|
||||
this.dnsmasqCfgDirsSelect = E('select', {
|
||||
'id' : 'dnsmasq_confdirs_list',
|
||||
'class': "cbi-input-select",
|
||||
|
||||
Reference in New Issue
Block a user