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

git-svn-id: https://develop.svn.wordpress.org/trunk@26332 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Lance Willett
2013-11-22 22:41:21 +00:00
parent 830e72a481
commit 1a5d00b986
5 changed files with 20 additions and 8 deletions

View File

@@ -1,9 +1,8 @@
/**
* Theme Customizer enhancements for a better user experience.
* Twenty Fourteen Theme Customizer enhancements for a better user experience.
*
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
*/
( function( $ ) {
// Site title and description.
wp.customize( 'blogname', function( value ) {

View File

@@ -1,4 +1,8 @@
/**
* Twenty Fourteen Featured Content admin behavior: add a tag suggestion
* when changing the tag.
*/
/* global ajaxurl:true */
jQuery( function( $ ) {
( function( $ ) {
$( '#customize-control-featured-content-tag-name input' ).suggest( ajaxurl + '?action=ajax-tag-search&tax=post_tag', { delay: 500, minchars: 2 } );
} );
} )( jQuery );

View File

@@ -1,3 +1,10 @@
/**
* Theme functions file
*
* Contains handlers for navigation, accessibility, header sizing
* footer widgets and Featured Content slider
*
*/
( function( $ ) {
var body = $( 'body' ),
_window = $( window );

View File

@@ -1,4 +1,7 @@
jQuery( function( $ ) {
/**
* Twenty Fourteen keyboard support for image navigation.
*/
( function( $ ) {
$( document ).on( 'keydown.twentyfourteen', function( e ) {
var url = false;
@@ -15,4 +18,4 @@ jQuery( function( $ ) {
window.location = url;
}
} );
} );
} )( jQuery );

View File

@@ -1,11 +1,10 @@
/* global DocumentTouch:true,setImmediate:true,featuredSliderDefaults:true,MSGesture:true */
/*
* Twenty Fourteen Featured Content Slider
*
* Adapted from FlexSlider v2.2.0, copyright 2012 WooThemes
* @link http://www.woothemes.com/flexslider/
*/
/* global DocumentTouch:true,setImmediate:true,featuredSliderDefaults:true,MSGesture:true */
( function( $ ) {
// FeaturedSlider: object instance.
$.featuredslider = function( el, options ) {