mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			540 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			540 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
Tea.context(function () {
 | 
						|
	this.letterGroups = [
 | 
						|
		"ABC", "DEF", "GHI", "JKL", "MNO", "PQR", "STU", "VWX", "YZ"
 | 
						|
	];
 | 
						|
	this.selectedGroup = "ABC"
 | 
						|
	this.letterCountries = {}
 | 
						|
	let that = this
 | 
						|
	this.countries.forEach(function (country) {
 | 
						|
		if (typeof (that.letterCountries[country.letter]) == "undefined") {
 | 
						|
			that.letterCountries[country.letter] = []
 | 
						|
		}
 | 
						|
		that.letterCountries[country.letter].push(country)
 | 
						|
	})
 | 
						|
	this.isCheckingAll = false
 | 
						|
 | 
						|
	this.selectGroup = function (group) {
 | 
						|
		this.selectedGroup = group
 | 
						|
	}
 | 
						|
 | 
						|
	this.success = NotifyPopup
 | 
						|
}) |