Skip to content

Commit

Permalink
added review request
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSibley committed Aug 10, 2017
1 parent ceed6ad commit 97d3561
Show file tree
Hide file tree
Showing 5 changed files with 1,127 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dnh/assets/js/main.js
@@ -0,0 +1,15 @@
jQuery(document).ready(function($) {
$( '.notice.is-dismissible' ).on('click', '.notice-dismiss', function ( event ) {
event.preventDefault();
var $this = $(this);
if( 'undefined' == $this.parent().attr('id') ){
return;
}
$.post( ajaxurl, {
action: 'dnh_dismiss_notice',
url: ajaxurl,
id: $this.parent().attr('id')
});

});
});

0 comments on commit 97d3561

Please sign in to comment.