Confirm order button close: Redirect only to url specified
This commit is contained in:
		
					parent
					
						
							
								108fbb09b0
							
						
					
				
			
			
				commit
				
					
						1e68ecb047
					
				
			
		
					 1 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -161,8 +161,11 @@ $(document).ready(function() {
 | 
			
		|||
                modal_btn = $('#createvm-modal-done-btn');
 | 
			
		||||
                $('#createvm-modal-title').text(data.msg_title);
 | 
			
		||||
                $('#createvm-modal-body').html(data.msg_body);
 | 
			
		||||
                modal_btn.attr('href', data.redirect)
 | 
			
		||||
                    .removeClass('hide');
 | 
			
		||||
                if (data.redirect) {
 | 
			
		||||
                    modal_btn.attr('href', data.redirect).removeClass('hide');
 | 
			
		||||
                } else {
 | 
			
		||||
                    modal_btn.attr('href', "");
 | 
			
		||||
                }
 | 
			
		||||
                if (data.status === true) {
 | 
			
		||||
                    fa_icon.attr('class', 'checkmark');
 | 
			
		||||
                } else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue