Files
EdgeAdmin/web/views/@default/servers/serverNamesPopup.js

14 lines
321 B
JavaScript

Tea.context(function () {
let allServerNames = this.serverNames.$copy();
this.keyword = ""
this.$delay(function () {
let that = this
this.$watch("keyword", function (keyword) {
that.serverNames = allServerNames.$findAll(function (k, serverName) {
return teaweb.match(serverName, keyword)
})
})
})
})