mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -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 ) {
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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 );
|
||||
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user