Skip to content
Permalink
Browse files

replace some deprecated jquery calls

  • Loading branch information
flack committed Nov 14, 2019
1 parent 223f84a commit a857307be4ae2bef8b7e7efb065cf4dd9e3e5686
@@ -5,7 +5,7 @@
</div>

<script type="text/javascript">
$('i.delete').bind('click', function(){
$('i.delete').on('click', function(){
var guid = this.id.substr(38),
loading = "<i class='fa fa-spinner fa-spin'></i>";
$('#org_openpsa_widgets_contact-' + guid).css('text-align', 'center');
@@ -50,7 +50,7 @@
</div>

<script type="text/javascript">
$('#<?php echo $grid->get_identifier();?>').bind('click', 'td.delete i', function(event) {
$('#<?php echo $grid->get_identifier();?>').on('click', 'td.delete i', function(event) {
var guid = $(event.target).data('person-guid'),
member_guid = $(event.target).data('member-guid'),
post_data = {org_openpsa_ajax_mode: 'unsubscribe', org_openpsa_ajax_person_guid: guid};
@@ -4,7 +4,7 @@
</div>

<script type="text/javascript">
jQuery('input.delete').bind('click', function(){
jQuery('input.delete').on('click', function(){
var guid = this.id.substr(29);
var loading = "<img src='" + MIDCOM_STATIC_URL + "/stock-icons/32x32/ajax-loading.gif' alt='loading' />";

0 comments on commit a857307

Please sign in to comment.
You can’t perform that action at this time.