From b1addd78ca12d5c17fab30df35f81fb5e24ac579 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 5 Dec 2013 23:39:11 +0000 Subject: [PATCH] Twenty Fourteen: Wait for DOM ready in the customizer, which was breaking IE8. props ocean90. fixes #26445. Built from https://develop.svn.wordpress.org/trunk@26706 git-svn-id: http://core.svn.wordpress.org/trunk@26595 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyfourteen/js/featured-content-admin.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentyfourteen/js/featured-content-admin.js b/wp-content/themes/twentyfourteen/js/featured-content-admin.js index 74e0e2f0e9..fc758bf1d0 100644 --- a/wp-content/themes/twentyfourteen/js/featured-content-admin.js +++ b/wp-content/themes/twentyfourteen/js/featured-content-admin.js @@ -4,5 +4,7 @@ */ /* global ajaxurl:true */ ( function( $ ) { - $( '#customize-control-featured-content-tag-name input' ).suggest( ajaxurl + '?action=ajax-tag-search&tax=post_tag', { delay: 500, minchars: 2 } ); + $( document ).ready( function() { + $( '#customize-control-featured-content-tag-name input' ).suggest( ajaxurl + '?action=ajax-tag-search&tax=post_tag', { delay: 500, minchars: 2 } ); + }); } )( jQuery );