Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aboobacker committed Apr 24, 2023
1 parent d0f1bb8 commit abef9fd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions functions/actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ function generate_capi_scripts() {
if($event['fire_event_with'] == 'css_selector') {
$txt .= "$('".$event['selector']."').on('click', function(e){ var event_id_fn = event_id();";
if($event['event_type'] == "Subscribe") {
$txt .= "if(abem() == null) {
if($('#del_newsletter_form input[type=\"email\"]').val()) {
em = SHA256($('#del_newsletter_form input[type=\"email\"]').val().toLowerCase());
}
}";
$txt .= "if(abem() == null) { if($('#del_newsletter_form input[type=\"email\"]').val()) { em = SHA256($('#del_newsletter_form input[type=\"email\"]').val().toLowerCase()); } }";
}
if($event['click_text']){
$txt .= "if( $(e.target).text().toLowerCase().indexOf('".$event['click_text']."') >= 0){";
Expand Down

0 comments on commit abef9fd

Please sign in to comment.