This repository has been archived on 2026-07-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
GoEdgeAdmin/web/views/@default/dashboard/boards/events.js
T

24 lines
411 B
JavaScript

Tea.context(function () {
this.updateRead = function (logId) {
this.$post(".readEvents")
.params({
logIds: [logId]
})
.success(function () {
teaweb.reload()
})
}
this.updatePageRead = function () {
let logIds = this.logs.map(function (v) {
return v.id
})
this.$post(".readEvents")
.params({
logIds: logIds
})
.success(function () {
teaweb.reload()
})
}
})