Permalink
Browse files

add dev version of js

  • Loading branch information...
1 parent 7dd0b73 commit a4ba9f7202e19f73ca17f9c9ca24d898d0832a54 @bueltge committed Oct 11, 2012
Showing with 26 additions and 0 deletions.
  1. +26 −0 js/theme-customizer.dev.js
@@ -0,0 +1,26 @@
+/**
+ * Theme Customizer enhancements for a better user experience.
+ *
+ * Contains handlers to make Theme Customizer preview reload changes asynchronously.
+ * Things like site title, description, and background color changes.
+ *
+ * @since 02/10/2012
+ */
+
+( function( $ ) {
+ var api = wp.customize;
+
+ // Site title and description.
+ api( 'blogname', function( value ) {
+ value.bind( function( to ) {
+ $( '#header h1 a, #footer a.site-name' ).html( to );
+ } );
+ } );
+
+ api( 'blogdescription', function( value ) {
+ value.bind( function( to ) {
+ $( '#header p.site-description' ).html( to );
+ } );
+ } );
+
+} )( jQuery );

0 comments on commit a4ba9f7

Please sign in to comment.