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');
 | 
					                modal_btn = $('#createvm-modal-done-btn');
 | 
				
			||||||
                $('#createvm-modal-title').text(data.msg_title);
 | 
					                $('#createvm-modal-title').text(data.msg_title);
 | 
				
			||||||
                $('#createvm-modal-body').html(data.msg_body);
 | 
					                $('#createvm-modal-body').html(data.msg_body);
 | 
				
			||||||
                modal_btn.attr('href', data.redirect)
 | 
					                if (data.redirect) {
 | 
				
			||||||
                    .removeClass('hide');
 | 
					                    modal_btn.attr('href', data.redirect).removeClass('hide');
 | 
				
			||||||
 | 
					                } else {
 | 
				
			||||||
 | 
					                    modal_btn.attr('href', "");
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
                if (data.status === true) {
 | 
					                if (data.status === true) {
 | 
				
			||||||
                    fa_icon.attr('class', 'checkmark');
 | 
					                    fa_icon.attr('class', 'checkmark');
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue