mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			326 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			326 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
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()
 | 
						|
			})
 | 
						|
	}
 | 
						|
}) |