Initial commit (code only without large binaries)
This commit is contained in:
18
EdgeAdmin/web/views/@default/clusters/index.js
Normal file
18
EdgeAdmin/web/views/@default/clusters/index.js
Normal file
@@ -0,0 +1,18 @@
|
||||
Tea.context(function () {
|
||||
this.latestVisible = false
|
||||
|
||||
this.showLatest = function () {
|
||||
this.latestVisible = !this.latestVisible
|
||||
}
|
||||
|
||||
this.pin = function (clusterId, isPinned) {
|
||||
this.$post(".pin")
|
||||
.params({
|
||||
clusterId: clusterId,
|
||||
isPinned: isPinned
|
||||
})
|
||||
.success(function () {
|
||||
teaweb.reload()
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user