Ticket #2841: 2841.patch
File 2841.patch, 1.8 KB (added by , 8 years ago) |
---|
-
wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php
48 48 49 49 if ( ! is_singular( 'page' ) ) { 50 50 wp_enqueue_script( 'google-charts-loader', 'https://www.gstatic.com/charts/loader.js', array(), null, true ); 51 wp_enqueue_script( 'wporg-theme', get_template_directory_uri() . "/js/theme{$suffix}.js", array( 'wp-backbone' ), 1 1, true );51 wp_enqueue_script( 'wporg-theme', get_template_directory_uri() . "/js/theme{$suffix}.js", array( 'wp-backbone' ), 12, true ); 52 52 53 53 wp_localize_script( 'wporg-theme', '_wpThemeSettings', array( 54 54 'themes' => false, -
wordpress.org/public_html/wp-content/themes/pub/wporg-themes/js/theme.js
1529 1529 return this.addFilter(); 1530 1530 } 1531 1531 1532 // If the translations of the filters pushes the group height1533 // over the min-height (710px), increase them all.1534 setTimeout( function() {1535 var filterGroupHeight = 0;1536 1537 filterGroupHeight = _.reduce( $( '.filter-group' ), function( max, item ) {1538 return Math.max( max, $( item ).outerHeight() );1539 }, filterGroupHeight );1540 1541 if ( filterGroupHeight > 710 ) {1542 $( '.filter-group' ).outerHeight( filterGroupHeight );1543 }1544 }, 0 );1545 1546 1532 this.clearSearch(); 1547 1533 1548 1534 $( 'body' ).toggleClass( 'show-filters' );