diff --git a/luci-app-mosdns/Makefile b/luci-app-mosdns/Makefile index 99b29fa..6a0f8fe 100644 --- a/luci-app-mosdns/Makefile +++ b/luci-app-mosdns/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-mosdns -PKG_VERSION:=1.6.10 +PKG_VERSION:=1.6.11 PKG_RELEASE:=1 LUCI_TITLE:=LuCI Support for mosdns diff --git a/luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js b/luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js index 090664b..0d66659 100644 --- a/luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js +++ b/luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js @@ -411,7 +411,7 @@ return view.extend({ if (configeditor) { var editorContent = configeditor.getValue(); if (editorContent === formvalue) { - return window.location.reload(); + return; } return fs.write('/etc/mosdns/config_custom.yaml', editorContent.trim().replace(/\r\n/g, '\n') + '\n') .then(function (i) {