Initial commit (code only without large binaries)
This commit is contained in:
20
EdgeAdmin/web/views/@default/servers/accesslogs/index.js
Normal file
20
EdgeAdmin/web/views/@default/servers/accesslogs/index.js
Normal file
@@ -0,0 +1,20 @@
|
||||
Tea.context(function () {
|
||||
this.createPolicy = function () {
|
||||
teaweb.popup(Tea.url(".createPopup", {}), {
|
||||
height: "24em",
|
||||
callback: NotifyReloadSuccess("保存成功")
|
||||
})
|
||||
}
|
||||
|
||||
this.deletePolicy = function (policyId) {
|
||||
teaweb.confirm("确定要删除这个日志策略吗?", function () {
|
||||
this.$post(".delete")
|
||||
.params({
|
||||
policyId: policyId
|
||||
})
|
||||
.success(function () {
|
||||
teaweb.successRefresh("保存成功")
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user