cloudsuite: rework onClouse method
This commit is contained in:
		
							parent
							
								
									32bc4fdbfe
								
							
						
					
					
						commit
						199fb6083e
					
				| @ -598,25 +598,10 @@ var documentsMain = { | |||||||
| 		$(window).off('unload'); | 		$(window).off('unload'); | ||||||
| 		parent.location.hash = ""; | 		parent.location.hash = ""; | ||||||
| 
 | 
 | ||||||
| 		documentsMain.webodfEditorInstance.endEditing(); | 		$('footer,nav').show(); | ||||||
| 		documentsMain.webodfEditorInstance.closeSession(function() { | 		documentsMain.UI.hideEditor(); | ||||||
| 			$('footer,nav').show(); | 		$(documentsMain.toolbar).remove(); | ||||||
| 			documentsMain.webodfEditorInstance.destroy(documentsMain.UI.hideEditor); | 		documentsMain.show(); | ||||||
| 
 |  | ||||||
| 			var url = ''; |  | ||||||
| 			if (documentsMain.isGuest){ |  | ||||||
| 				url = OC.generateUrl('apps/documents/ajax/user/disconnectGuest', {}); |  | ||||||
| 			} else { |  | ||||||
| 				url = OC.generateUrl('apps/documents/ajax/user/disconnect', {}); |  | ||||||
| 			} |  | ||||||
| 
 |  | ||||||
| 			$.post(url, { |  | ||||||
| 				memberId : documentsMain.memberId, |  | ||||||
| 				esId: documentsMain.esId |  | ||||||
| 			}); |  | ||||||
| 
 |  | ||||||
| 			documentsMain.show(); |  | ||||||
| 		}); |  | ||||||
| 	}, | 	}, | ||||||
| 
 | 
 | ||||||
| 	onTerminate: function(){ | 	onTerminate: function(){ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user