[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-core/admin/js/ -> dismissible-admin-notices.js (source)

   1  (function($){
   2      $(document).ready(function() {
   3          $( '.bp-is-dismissible .notice-dismiss' ).click( function() {
   4              var $notice = $( this ).closest( '.notice' );
   5              var notice_id = $notice.data( 'noticeid' );
   6              $.post( {
   7                  url: ajaxurl,
   8                  data: {
   9                      action: 'bp_dismiss_notice',
  10                      nonce: $( '#bp-dismissible-nonce-' + notice_id ).val(),
  11                      notice_id: $notice.data( 'noticeid' )
  12                  }
  13              } );
  14          } );
  15      });
  16  }(jQuery));


Generated: Tue Nov 24 01:01:37 2020 Cross-referenced by PHPXref 0.7.1