Changeset 4465
- Timestamp:
- 12/04/2016 04:30:59 PM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/Gruntfile.js
r4223 r4465 1 /* global module:false, require:function */1 /* global module:false, require:function, process:object */ 2 2 3 3 var webpack = require( 'webpack' ), -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/section-accordion.js
r4464 r4465 38 38 var height = $section.children().next( 'p,div' ).first().outerHeight( true ) /* embed */ + $section.children().first().outerHeight( true ) /* h2 */; 39 39 40 if ( height > parseInt( $ toggle.css( 'max-height' ) ) ) {40 if ( height > parseInt( $section.css( 'max-height' ) ) ) { 41 41 $section.css( 'min-height', height + 'px' ); 42 42 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/stats.js
r4260 r4465 1 google.load( "visualization", "1", { packages: ["corechart"] } ); 1 /* globals google:object */ 2 google.load( 'visualization', '1', { packages: ['corechart'] } ); 2 3 3 4 ( function( $, settings ) { … … 40 41 viewWindow: { min: 0 } 41 42 }, 42 bar: { groupWidth: ( data.getNumberOfRows() > 100 ? "100%": null ) },43 bar: { groupWidth: ( data.getNumberOfRows() > 100 ? '100%' : null ) }, 43 44 height: 350, 44 45 width: 532, … … 55 56 } 56 57 57 var text = settings.l10n[summary_field]; 58 var count = parseInt(summary[ summary_field ]).toLocaleString(); 58 var text = settings.l10n[ summary_field ]; 59 var count = parseInt( summary[ summary_field ] ).toLocaleString(); 60 var $newrow = $( '<tr><th scope="row"></th><td>0</td></tr>' ); 59 61 60 $newrow = $("<tr><th scope='row'></th><td>0</td></tr>");61 62 $newrow.find( 'th' ).text( text ); 62 63 $newrow.find( 'td' ).text( count ); … … 75 76 versionList = [], 76 77 index = 0, 77 version,data, formatter;78 data, formatter; 78 79 79 80 // Gather and sort the list of versions. … … 86 87 a = a.split( '.' ); 87 88 b = b.split( '.' ); 88 return ( a[0] != b[0] ) ? a[0]-b[0] : a[1]-b[1];89 return ( a[0] !== b[0] ) ? a[0]-b[0] : a[1]-b[1]; 89 90 } ); 90 91
Note: See TracChangeset
for help on using the changeset viewer.