mirror of
https://github.com/lubuntu-team/lubuntu.me.git
synced 2025-10-24 21:24:03 +00:00
1 line
1.0 KiB
JavaScript
1 line
1.0 KiB
JavaScript
function wp_statistics_get_widget_contents(t,i){var s={action:"wp_statistics_get_widget_contents",widget:t};container=jQuery("#"+i),container.is(":visible")&&jQuery.ajax({url:ajaxurl,type:"post",data:s,datatype:"json"}).always(function(t){jQuery("#"+i).html("").html(t)}).fail(function(i){container.html(wp_statistics_loading_image),wp_statistics_get_widget_contents(t,coontaier_id)})}function wp_statistics_refresh_widget(){var t=this.id.replace("wps_","");return t=t.replace("_refresh_button",""),container_id=t.replace(".","_")+"_postbox",container=jQuery("#"+container_id),container.is(":visible")&&(container.html(wp_statistics_loading_image),wp_statistics_get_widget_contents(t,container_id)),!1}function wp_statistics_refresh_on_toggle_widget(){if("wps_"==this.value.substring(0,4)){var t=this.value.replace("wps_",""),i=t.replace("_postbox","");wp_statistics_get_widget_contents(i,t)}}function wp_statistics_goto_more(){var t=this.id;return void 0!==wp_statistics_destinations[t]&&(window.location.href=wp_statistics_destinations[t]),!1} |