From e1c50ac68917005bed70dd478bc8cdb050d2182a Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 5 Dec 2013 23:38:47 +0000 Subject: [PATCH] Twenty Fourteen: Wait for DOM ready in the customizer, which was breaking IE8. props ocean90. fixes #26445. git-svn-id: https://develop.svn.wordpress.org/trunk@26706 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentyfourteen/js/featured-content-admin.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-content/themes/twentyfourteen/js/featured-content-admin.js b/src/wp-content/themes/twentyfourteen/js/featured-content-admin.js index 74e0e2f0e9..fc758bf1d0 100644 --- a/src/wp-content/themes/twentyfourteen/js/featured-content-admin.js +++ b/src/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 );