Files
EdgeAdmin/web/views/@default/dns/providers/index.js

23 lines
486 B
JavaScript
Raw Normal View History

2020-11-11 21:32:19 +08:00
Tea.context(function () {
this.createProvider = function () {
teaweb.popup(Tea.url(".createPopup"), {
2020-11-15 11:57:43 +08:00
height: "28em",
2020-11-11 21:32:19 +08:00
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()
})
}
})