| 1 |
/*- |
| 2 |
* Author: Alin Marcu |
| 3 |
* Author URI: https://deconf.com |
| 4 |
* Copyright 2013 Alin Marcu |
| 5 |
* License: GPLv2 or later |
| 6 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 7 |
*/ |
| 8 |
|
| 9 |
"use strict"; |
| 10 |
|
| 11 |
jQuery( document ).ready( function () { |
| 12 |
|
| 13 |
var cawp_ui = { |
| 14 |
action : 'cawp_dismiss_notices', |
| 15 |
cawp_security_dismiss_notices : cawp_ui_data.security, |
| 16 |
} |
| 17 |
|
| 18 |
jQuery( "#cawp-notice .notice-dismiss" ).click( function () { |
| 19 |
jQuery.post( cawp_ui_data.ajaxurl, cawp_ui ); |
| 20 |
} ); |
| 21 |
|
| 22 |
if ( cawp_ui_data.ed_bubble != '' ) { |
| 23 |
jQuery( '#toplevel_page_cawp_settings li > a[href*="page=cawp_errors_debugging"]' ).append( ' <span class="awaiting-mod count-1"><span class="pending-count" style="padding:0 7px;">' + cawp_ui_data.ed_bubble + '</span></span>' ); |
| 24 |
} |
| 25 |
|
| 26 |
} ); |