mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user