From d0d49945abedb248d493b60f89de4b3d74042109 Mon Sep 17 00:00:00 2001 From: bumpbot Date: Thu, 9 Feb 2012 22:00:49 +0000 Subject: [PATCH] Compress scripts/styles: 3.4-alpha-19894. git-svn-id: https://develop.svn.wordpress.org/trunk@19894 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/js/theme.js | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/js/theme.js b/wp-admin/js/theme.js index 10b36bc4dc..ae2e75774e 100644 --- a/wp-admin/js/theme.js +++ b/wp-admin/js/theme.js @@ -1 +1 @@ -var ThemeViewer;(function(a){ThemeViewer=function(b){function d(){a("#filter-click, #mini-filter-click").unbind("click").click(function(){a("#filter-click").toggleClass("current");a("#filter-box").slideToggle();a("#current-theme").slideToggle(300);return false});a("#filter-box :checkbox").unbind("click").click(function(){var e=a("#filter-box :checked").length,f=a("#filter-click").text();if(f.indexOf("(")!=-1){f=f.substr(0,f.indexOf("("))}if(e==0){a("#filter-click").text(f)}else{a("#filter-click").text(f+" ("+e+")")}})}var c={init:d};return c}})(jQuery);jQuery(document).ready(function(a){theme_viewer=new ThemeViewer();theme_viewer.init()});var wpThemes;(function(c){var a={},b;wpThemes={timeToTriggerQuery:150,minQueryAJAXDuration:200,outListBottomThreshold:200,noMoreResults:false,init:function(){c(".pagination-links").hide();a.nonce=c("#_ajax_fetch_list_nonce").val();a.queryString=window.location.search;a.queryArray=wpThemes.parseQuery(a.queryString.substring(1));a.search=a.queryArray.s;a.features=a.queryArray.features;a.startPage=parseInt(a.queryArray.paged);a.tab=a.queryArray.tab;a.type=a.queryArray.type;if(isNaN(a.startPage)){a.startPage=2}else{a.startPage++}a.outList=c("#availablethemes");wpThemes.query=new b();c(window).scroll(function(){wpThemes.maybeLoad()})},delayedCallback:function(f,d){var i,h,g,e;if(!d){return f}setTimeout(function(){if(h){return f.apply(e,g)}i=true},d);return function(){if(i){return f.apply(this,arguments)}g=arguments;e=this;h=true}},ajax:function(f){var e=this,d=wpThemes.delayedCallback(function(g,h){e.process(g,h);if(f){f(g,h)}},wpThemes.minQueryAJAXDuration);this.query.ajax(d)},process:function(d,e){if((d===undefined)||(d.rows.indexOf("no-items")!=-1)){this.noMoreResults=true}else{a.outList.append(d.rows)}},maybeLoad:function(){var e=this,f=c(document),d=f.scrollTop()+c(window).innerHeight();if(this.noMoreResults||!this.query.ready()||(d