Changeset 6630
- Timestamp:
- 12/11/2012 02:32:46 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/admin/js/admin.js
r6294 r6630 108 108 109 109 // Set up deleting options ajax 110 jQuery( 'a.ajax-option-delete' ).click( 111 function() { 112 var theId = this.id.split( '-' ); 113 theId = theId[1]; 114 115 jQuery.post( ajaxurl, { 116 action: 'xprofile_delete_option', 117 'cookie': encodeURIComponent( document.cookie ), 118 '_wpnonce': jQuery('input#_wpnonce').val(), 119 'option_id': theId 120 }, 121 function( response ) {} ); 122 } 123 ); 110 jQuery( 'a.ajax-option-delete' ).live( 'click', function() { 111 var theId = this.id.split( '-' ); 112 theId = theId[1]; 113 114 jQuery.post( ajaxurl, { 115 action: 'xprofile_delete_option', 116 'cookie': encodeURIComponent( document.cookie ), 117 '_wpnonce': jQuery('input#_wpnonce').val(), 118 'option_id': theId 119 }, 120 function( response ) {} ); 121 } ); 124 122 125 123 //
Note: See TracChangeset
for help on using the changeset viewer.