Make WordPress Core

Changeset 26332


Ignore:
Timestamp:
11/22/2013 10:41:21 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: standardize comment blocks and jQuery function wrapper calls in JavaScript files. Props seanchayes for initial patch, see #25946.

Location:
trunk/src/wp-content/themes/twentyfourteen/js
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/js/customizer.js

    r24832 r26332  
    11/**
    2  * Theme Customizer enhancements for a better user experience.
     2 * Twenty Fourteen Theme Customizer enhancements for a better user experience.
    33 *
    44 * Contains handlers to make Theme Customizer preview reload changes asynchronously.
    55 */
    6 
    76( function( $ ) {
    87    // Site title and description.
  • trunk/src/wp-content/themes/twentyfourteen/js/featured-content-admin.js

    r26084 r26332  
     1/**
     2 * Twenty Fourteen Featured Content admin behavior: add a tag suggestion
     3 * when changing the tag.
     4 */
    15/* global ajaxurl:true */
    2 jQuery( function( $ ) {
     6( function( $ ) {
    37    $( '#customize-control-featured-content-tag-name input' ).suggest( ajaxurl + '?action=ajax-tag-search&tax=post_tag', { delay: 500, minchars: 2 } );
    4 } );
     8} )( jQuery );
  • trunk/src/wp-content/themes/twentyfourteen/js/functions.js

    r26261 r26332  
     1/**
     2 * Theme functions file
     3 *
     4 * Contains handlers for navigation, accessibility, header sizing
     5 * footer widgets and Featured Content slider
     6 *
     7 */
    18( function( $ ) {
    29    var body    = $( 'body' ),
  • trunk/src/wp-content/themes/twentyfourteen/js/keyboard-image-navigation.js

    r26226 r26332  
    1 jQuery( function( $ ) {
     1/**
     2 * Twenty Fourteen keyboard support for image navigation.
     3 */
     4( function( $ ) {
    25    $( document ).on( 'keydown.twentyfourteen', function( e ) {
    36        var url = false;
     
    1619        }
    1720    } );
    18 } );
     21} )( jQuery );
  • trunk/src/wp-content/themes/twentyfourteen/js/slider.js

    r26261 r26332  
    1 /* global DocumentTouch:true,setImmediate:true,featuredSliderDefaults:true,MSGesture:true */
    21/*
    32 * Twenty Fourteen Featured Content Slider
     
    65 * @link http://www.woothemes.com/flexslider/
    76 */
    8 
     7/* global DocumentTouch:true,setImmediate:true,featuredSliderDefaults:true,MSGesture:true */
    98( function( $ ) {
    109    // FeaturedSlider: object instance.
Note: See TracChangeset for help on using the changeset viewer.