]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/themes/twentyfourteen/js/featured-content-admin.js
WordPress 3.8
[autoinstalls/wordpress.git] / wp-content / themes / twentyfourteen / js / featured-content-admin.js
diff --git a/wp-content/themes/twentyfourteen/js/featured-content-admin.js b/wp-content/themes/twentyfourteen/js/featured-content-admin.js
new file mode 100644 (file)
index 0000000..66f4c07
--- /dev/null
@@ -0,0 +1,9 @@
+/**
+ * Twenty Fourteen Featured Content admin behavior: add a tag suggestion
+ * when changing the tag.
+ */
+/* global ajaxurl:true */
+
+jQuery( document ).ready( function( $ ) {
+       $( '#customize-control-featured-content-tag-name input' ).suggest( ajaxurl + '?action=ajax-tag-search&tax=post_tag', { delay: 500, minchars: 2 } );
+});