| @@ -142,8 +142,19 @@ | ||
| 142 | 142 | alert( response.trim() ); |
| 143 | 143 | }); |
| 144 | 144 | } |
| 145 | 145 | } |
| 146 | + | |
| 147 | + jQuery(document).on('click', 'a.wppb-ec-action', function(e) { | |
| 148 | + e.preventDefault(); | |
| 149 | + var link = jQuery(this); | |
| 150 | + confirmECAction( | |
| 151 | + link.attr('data-url'), | |
| 152 | + link.attr('data-todo'), | |
| 153 | + link.attr('data-email'), | |
| 154 | + link.attr('data-message') | |
| 155 | + ); | |
| 156 | + }); | |
| 146 | 157 | </script> |
| 147 | 158 | <?php |
| 148 | 159 | } |
| 149 | 160 | |