jQuery(document).ready(function ($) { /* If there are required actions, add an icon with the number of required actions in the About at-theme-info page -> Actions recommended tab */ var at_theme_info_count_actions_recommended = at_theme_info_object.count_actions_recommended; if ( (typeof at_theme_info_count_actions_recommended !== 'undefined') && (at_theme_info_count_actions_recommended != '0') ) { jQuery('li.at-theme-info-w-red-tab a').append('' + at_theme_info_count_actions_recommended + ''); } /* Dismiss required actions */ jQuery(".at-theme-info-recommended-action-button,.reset-all").click(function() { var id = jQuery(this).attr('id'), action = jQuery(this).attr('data-action'); jQuery.ajax({ type : "GET", data : { action: 'at_theme_info_update_recommended_action', id: id, todo: action }, dataType : "html", url : at_theme_info_object.ajaxurl, beforeSend: function (data, settings) { jQuery('.at-theme-info-tab-pane#actions_required h1').append('
