').appendTo(jQuery('.ecwid-reset-categories-cache-block', element)); jQuery('') .text(ecwid_params.cache_updated) .addClass('ecwid-reset-categories-cache-updated') .appendTo($target); var a = jQuery('') .text(ecwid_params.reset_cats_cache) .attr('href', 'javascript:void(0);') .addClass('ecwid-reset-categories-cache') .appendTo($target); a.click(function() { var that = this; jQuery(that).css('cursor', 'wait'); resetCache(function() { jQuery(that).fadeOut(100, function() { jQuery(that).prev('.ecwid-reset-categories-cache-updated').fadeIn(100, function() { setTimeout(function () { jQuery(that).prev('.ecwid-reset-categories-cache-updated').fadeOut(500, function () { jQuery(that).fadeIn(500); }) }, 4000); }); }); jQuery(that).css('cursor', 'pointer'); }); }); if (jQuery('#ecwid-frame').length > 0) { if (jQuery('div.update-nag').length > 0) { jQuery('#ecwid-frame').addClass('has-wp-message'); } } element.data('vcategoriesInitialized', true); };