redirect on success
This commit is contained in:
		
					parent
					
						
							
								a808f3bf7e
							
						
					
				
			
			
				commit
				
					
						e045caebbe
					
				
			
		
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -21,7 +21,7 @@ $( document ).ready(function() {
 | 
			
		|||
          $container.addClass('terminate-success')
 | 
			
		||||
            .find('.vm-item-lg').text(data.text);
 | 
			
		||||
          $btn.remove();
 | 
			
		||||
          // window.location = data.redirect;
 | 
			
		||||
          window.location = data.redirect;
 | 
			
		||||
        }
 | 
			
		||||
        else {
 | 
			
		||||
          $container.addClass('terminate-fail')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -971,7 +971,7 @@ class VirtualMachineView(LoginRequiredMixin, View):
 | 
			
		|||
                    break
 | 
			
		||||
                try:
 | 
			
		||||
                    manager.get_vm(self.kwargs.get('pk'))
 | 
			
		||||
                except:
 | 
			
		||||
                except BaseException:
 | 
			
		||||
                    break
 | 
			
		||||
                else:
 | 
			
		||||
                    sleep(2)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue