]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/themes/twentyfourteen/js/functions.js
WordPress 3.9
[autoinstalls/wordpress.git] / wp-content / themes / twentyfourteen / js / functions.js
index add41087b2c16974f59efc5a5861c7422f78c3fb..ea656d8077e8c93808d9e12e496f3bab4eb2d78a 100644 (file)
                } );
        } );
 
-       // Arrange footer widgets vertically.
-       if ( $.isFunction( $.fn.masonry ) ) {
-               $( '#footer-sidebar' ).masonry( {
-                       itemSelector: '.widget',
-                       columnWidth: function( containerWidth ) {
-                               return containerWidth / 4;
-                       },
-                       gutterWidth: 0,
-                       isResizable: true,
-                       isRTL: $( 'body' ).is( '.rtl' )
-               } );
-       }
-
-       // Initialize Featured Content slider.
        _window.load( function() {
+               // Arrange footer widgets vertically.
+               if ( $.isFunction( $.fn.masonry ) ) {
+                       $( '#footer-sidebar' ).masonry( {
+                               itemSelector: '.widget',
+                               columnWidth: function( containerWidth ) {
+                                       return containerWidth / 4;
+                               },
+                               gutterWidth: 0,
+                               isResizable: true,
+                               isRTL: $( 'body' ).is( '.rtl' )
+                       } );
+               }
+
+               // Initialize Featured Content slider.
                if ( body.is( '.slider' ) ) {
                        $( '.featured-content' ).featuredslider( {
                                selector: '.featured-content-inner > article',