4 ThemeViewer = function( args ) {
7 $( '#filter-click, #mini-filter-click' ).unbind( 'click' ).click( function() {
8 $( '#filter-click' ).toggleClass( 'current' );
9 $( '#filter-box' ).slideToggle();
10 $( '#current-theme' ).slideToggle( 300 );
14 $( '#filter-box :checkbox' ).unbind( 'click' ).click( function() {
15 var count = $( '#filter-box :checked' ).length,
16 text = $( '#filter-click' ).text();
18 if ( text.indexOf( '(' ) != -1 )
19 text = text.substr( 0, text.indexOf( '(' ) );
22 $( '#filter-click' ).text( text );
24 $( '#filter-click' ).text( text + ' (' + count + ')' );
27 /* $('#filter-box :submit').unbind( 'click' ).click(function() {
29 $('#filter-box :checked').each(function() {
30 features.push($(this).val());
33 listTable.update_rows({'features': features}, true, function() {
34 $( '#filter-click' ).toggleClass( 'current' );
35 $( '#filter-box' ).slideToggle();
36 $( '#current-theme' ).slideToggle( 300 );
43 // These are the functions we expose
52 jQuery( document ).ready( function($) {
53 theme_viewer = new ThemeViewer();