| 1 |
jQuery(document).ready(function() { |
| 2 |
jQuery('#xyz_ips_system_notice_area').animate({ |
| 3 |
opacity : 'show', |
| 4 |
height : 'show' |
| 5 |
}, 500); |
| 6 |
|
| 7 |
jQuery(document).on( |
| 8 |
'click', |
| 9 |
'#xyz_ips_system_notice_area_dismiss', |
| 10 |
function () { |
| 11 |
jQuery('#xyz_ips_system_notice_area').animate({ |
| 12 |
opacity : 'hide', |
| 13 |
height : 'hide' |
| 14 |
}, 500); |
| 15 |
} |
| 16 |
); |
| 17 |
|
| 18 |
let ips_deactivateURL = ''; |
| 19 |
jQuery(document).on('click', '.xyz-ips-deactivate-link', function(e) { |
| 20 |
e.preventDefault(); |
| 21 |
ips_deactivateURL = jQuery(this).attr('href'); |
| 22 |
jQuery('#xyz-ips-modal').fadeIn(); |
| 23 |
}); |
| 24 |
jQuery('#xyz-ips-proceed-deactivate').on('click', function() { |
| 25 |
window.location.href = ips_deactivateURL; |
| 26 |
}); |
| 27 |
jQuery('#xyz-ips-cancel-deactivate').on('click', function() { |
| 28 |
jQuery('#xyz-ips-modal').fadeOut(); |
| 29 |
}); |
| 30 |
}); |
| 31 |
|