Initial commit (code only without large binaries)
This commit is contained in:
23
EdgeUser/web/views/@default/dns/providers/index.js
Normal file
23
EdgeUser/web/views/@default/dns/providers/index.js
Normal file
@@ -0,0 +1,23 @@
|
||||
Tea.context(function () {
|
||||
this.createProvider = function () {
|
||||
teaweb.popup(Tea.url(".createPopup"), {
|
||||
height: "28em",
|
||||
callback: function () {
|
||||
teaweb.success("保存成功", function () {
|
||||
teaweb.reload()
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
this.deleteProvider = function (providerId) {
|
||||
let that = this
|
||||
teaweb.confirm("确定要删除这个DNS服务商账号吗?", function () {
|
||||
that.$post(".delete")
|
||||
.params({
|
||||
providerId: providerId
|
||||
})
|
||||
.refresh()
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user