PluginProbe
HyperPay Payments / trunk
HyperPay Payments vtrunk
6.6.0 trunk 1.7 1.8 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.1.0 2.2.0 2.3.0 2.3.1 2.3.2 2.3.3 3.0.0 3.0.5 4.0.0 4.0.2 All 34 releases
hyperpay-gateways / src / assets / js / modal.js

modal.js in HyperPay Payments trunk, at src/assets/js/modal.js

21 lines 443 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 function openModal(text) {
2
3 var modal = jQuery("#hyperpayModal");
4 var span = jQuery(".close")[0];
5
6 modal.find("p").html(text)
7
8 modal.fadeIn();
9
10 span.onclick = function () {
11 modal.fadeOut();
12 }
13
14 // When the user clicks anywhere outside of the modal, close it
15 jQuery(window).click(function(event){
16 if (event.target == modal[0]) {
17 modal.fadeOut();
18 }
19 })
20
21 }