Remove vestige code from theme.js. See #14936

git-svn-id: https://develop.svn.wordpress.org/trunk@16540 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu
2010-11-23 00:06:15 +00:00
parent 612a6bda24
commit 1d586a6a7f
3 changed files with 3 additions and 30 deletions
+1 -28
View File
@@ -27,33 +27,6 @@ var ThemeViewer;
$( '#filters :checkbox' ).unbind( 'click' ).click( function() {
filter_count();
});
$( 'p.tags a' ).unbind( 'click' ).click(function() {
$( 'p.tags a' ).unbind( 'click' ).click(function() { slow_down(); return false }); // Stop further clicks until we've done
$( '.loading' ).fadeIn();
$( '.random-info' ).fadeOut();
var item = this.href.replace( /.*?s=(.*?)#.*/, '$1' );
// Is this in the features list?
if ( $( 'input[value="' + item + '"]' ).length > 0 ) {
$( 'input[value="' + item + '"]' ).attr( 'checked', $( 'input[value="' + item + '"]' ).attr( 'checked' ) ? false : true );
filter_count();
}
else
$( 'input[name=s]' ).val( item ); // Can't find it, just use a search
// Set the options
opts.search = $( 'input[name=s]' ).val();
opts.order = document.location.href.match( /order=(\w*)/ ) ? document.location.href.match( /order=(\w*)/ )[1] : 'random';
$( '#availablethemes td' ).fadeTo( 500, 0.1, function() {
$( '#availablethemes td img' ).hide();
} );
return false;
});
}
// These are the functions we expose
@@ -68,4 +41,4 @@ var ThemeViewer;
jQuery( document ).ready( function($) {
theme_viewer = new ThemeViewer();
theme_viewer.init();
});
});