luci-app-mosdns: fix uci handleSaveApply issue in custom configuration mode
Signed-off-by: sbwml <admin@cooluc.com>
This commit is contained in:
parent
4bafe2875e
commit
2c0a056fd5
@ -1,7 +1,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=luci-app-mosdns
|
PKG_NAME:=luci-app-mosdns
|
||||||
PKG_VERSION:=1.6.10
|
PKG_VERSION:=1.6.11
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
LUCI_TITLE:=LuCI Support for mosdns
|
LUCI_TITLE:=LuCI Support for mosdns
|
||||||
|
@ -411,7 +411,7 @@ return view.extend({
|
|||||||
if (configeditor) {
|
if (configeditor) {
|
||||||
var editorContent = configeditor.getValue();
|
var editorContent = configeditor.getValue();
|
||||||
if (editorContent === formvalue) {
|
if (editorContent === formvalue) {
|
||||||
return window.location.reload();
|
return;
|
||||||
}
|
}
|
||||||
return fs.write('/etc/mosdns/config_custom.yaml', editorContent.trim().replace(/\r\n/g, '\n') + '\n')
|
return fs.write('/etc/mosdns/config_custom.yaml', editorContent.trim().replace(/\r\n/g, '\n') + '\n')
|
||||||
.then(function (i) {
|
.then(function (i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user