HOME


Mini Shell 1.0
DIR: /home/dhnidqcz/pragmaticsng.org/wp-content/themes/memberlite/js/
Upload File :
Current File : /home/dhnidqcz/pragmaticsng.org/wp-content/themes/memberlite/js/admin-dismiss-notice.js
/**
 * Make AJAX call to note that a dashboard notice has been dismissed
 */
jQuery( document ).ready(
	function() {
		jQuery( 'div.memberlite-notice button.notice-dismiss' ).click(
			function() {
				var notice = jQuery( this ).closest( 'div' ).attr( 'id' ).replace( 'memberlite-admin-notice-', '' );

				if (notice.length > 1) {
					jQuery.ajax(
						{
							url: ajaxurl,type:'POST', timeout: 30000,
							dataType: 'html',
							data: 'action=memberlite_dismiss_notice&notice=' + notice,
							error: function(xml){
								alert( 'There was an error dismissing the Memberlite notice.' );
							},
							success: function(responseHTML){
								// quiet success
							}
						}
					);
				}
			}
		);
	}
);