Linux webm002.cluster126.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
/
home
/
a
/
r
/
i
/
ariannadhf
/
www
/
wp-content
/
plugins
/
simple-history
/
js
/
/home/a/r/i/ariannadhf/www/wp-content/plugins/simple-history/js/review-notice.js
/* global simpleHistoryReviewNotice */ jQuery( document ).ready( function ( $ ) { const $dismissButton = $( '.simple-history-review-notice-dismiss-button' ); // Handle click on "Maybe Later" button. $dismissButton.on( 'click', function ( e ) { e.preventDefault(); dismissNotice(); } ); /** * Send AJAX request to dismiss the notice. */ function dismissNotice() { const $notice = $dismissButton.closest( '.notice' ); $.post( simpleHistoryReviewNotice.ajaxurl, { action: simpleHistoryReviewNotice.action, nonce: simpleHistoryReviewNotice.nonce, } ) .done( function ( response ) { if ( response.success ) { $notice.fadeOut(); } } ) .fail( function () { // If AJAX call fails, at least hide the notice for current page view. $notice.fadeOut(); } ); } } );