mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	Support custom action after new panel is selected
This commit is contained in:
		
							parent
							
								
									fd0d08f2cd
								
							
						
					
					
						commit
						55b4cfc82a
					
				@ -213,6 +213,7 @@
 | 
			
		||||
      var $container = this.element;
 | 
			
		||||
      var $toShow = _panel.lower($container, $panel);
 | 
			
		||||
      var $toRemove = _panel.higher($container, $panel);
 | 
			
		||||
      var complete = args.complete;
 | 
			
		||||
 | 
			
		||||
      if ($panel.hasClass('maximized')) return false;
 | 
			
		||||
 | 
			
		||||
@ -235,6 +236,8 @@
 | 
			
		||||
          duration: 500,
 | 
			
		||||
          complete: function() {
 | 
			
		||||
            $(this).remove();
 | 
			
		||||
            
 | 
			
		||||
            if (complete) complete($toShow);
 | 
			
		||||
          }
 | 
			
		||||
       }
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user