Browse Source
			
			
			Properly reload file list on share accept
			
				Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
			
			
				pull/18222/head
			
			
		 
		
			
				
					
						 John Molakvoæ (skjnldsv)
					
					6 years ago
						John Molakvoæ (skjnldsv)
					
					6 years ago
					
				 
				
			 
		 
		
			
				
				  
				  No known key found for this signature in database
				  
				  	
						GPG Key ID: 60C25B8C072916CF
				  	
				  
				
			
		
		
		
	
		
			
				 1 changed files with 
7 additions and 
0 deletions
			 
			
		 
		
			
				- 
					
					
					 
					apps/files/js/filelist.js
				
					
					
						
							
								
									
										
											
	
		
			
				
					|  |  | @ -364,6 +364,13 @@ | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 			this.$el.on('show', this._onResize); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 			// reload files list on share accept
 | 
			
		
	
		
			
				
					|  |  |  | 			$('body').on('OCA.Notification.Action', function(eventObject) { | 
			
		
	
		
			
				
					|  |  |  | 				if (eventObject.notification.app === 'files_sharing' && eventObject.action.type === 'POST') { | 
			
		
	
		
			
				
					|  |  |  | 					self.reload() | 
			
		
	
		
			
				
					|  |  |  | 				} | 
			
		
	
		
			
				
					|  |  |  | 			}); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 			this.updateSearch(); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 			this.$fileList.on('click','td.filename>a.name, td.filesize, td.date', _.bind(this._onClickFile, this)); | 
			
		
	
	
		
			
				
					|  |  | 
 |