Skip to content

Commit

Permalink
Add link text for Group Contact removal.
Browse files Browse the repository at this point in the history
See #3265.
  • Loading branch information
boonebgorges committed Nov 2, 2023
1 parent e93f3b5 commit a370a49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wp-content/plugins/wds-citytech/assets/js/group-contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ window.wp = window.wp || {};
function create_list_item( nicename, label ) {
var li = '';

li = '<li id="group-contact-' + nicename + '" class="group-contact-member" data-nicename="' + nicename + '"><span class="group-contact-remove"><a href="#"><span class="fa fa-minus-circle"></span></a></span> ' + label + '<input type="hidden" name="group-contact-js[]" value="' + nicename + '"></li>';
li = '<li id="group-contact-' + nicename + '" class="group-contact-member" data-nicename="' + nicename + '">' + label + '<input type="hidden" name="group-contact-js[]" value="' + nicename + '"><span class="group-contact-remove"> <a href="#"><span class="fa fa-minus-circle"></span></a></span></li>';
li = '<li id="group-contact-' + nicename + '" class="group-contact-member" data-nicename="' + nicename + '"><span class="group-contact-remove"><a href="#"><span class="fa fa-minus-circle"></span><span class="screen-reader-text">Remove Contact</span></a></span> ' + label + '<input type="hidden" name="group-contact-js[]" value="' + nicename + '"></li>';
li = '<li id="group-contact-' + nicename + '" class="group-contact-member" data-nicename="' + nicename + '">' + label + '<input type="hidden" name="group-contact-js[]" value="' + nicename + '"><span class="group-contact-remove"> <a href="#"><span class="fa fa-minus-circle"></span><span class="screen-reader-text">Remove Contact</span></a></span></li>';
$( '#group-contact-list' ).append( li );
}
}
Expand Down

0 comments on commit a370a49

Please sign in to comment.