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