Initial commit (code only without large binaries)
This commit is contained in:
23
EdgeUser/web/views/@default/ns/routes/createPopup.js
Normal file
23
EdgeUser/web/views/@default/ns/routes/createPopup.js
Normal file
@@ -0,0 +1,23 @@
|
||||
Tea.context(function () {
|
||||
this.rangeTypeCode = "ipRange"
|
||||
this.rangeType = null
|
||||
this.ranges = []
|
||||
|
||||
this.$delay(function () {
|
||||
this.changeRangeType()
|
||||
})
|
||||
|
||||
this.changeRangeType = function () {
|
||||
let that = this
|
||||
this.rangeType = this.rangeTypes.$find(function (k, v) {
|
||||
return v.code == that.rangeTypeCode
|
||||
})
|
||||
|
||||
if (this.$refs != null) {
|
||||
let rangesBox = this.$refs.routeRangesBox
|
||||
if (rangesBox != null) {
|
||||
rangesBox.updateRangeType(this.rangeTypeCode)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user