Confirm order button close: Redirect only to url specified

This commit is contained in:
PCoder 2019-06-24 04:31:29 +02:00
parent 108fbb09b0
commit 1e68ecb047

View file

@ -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 {