]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/custom-background.dev.js
Wordpress 3.1
[autoinstalls/wordpress.git] / wp-admin / js / custom-background.dev.js
index 5b4b1543ccf3d52aa751e9336e7730b571befb05..1a46d55d02fd755472b92cad8b68c48cb033a56b 100644 (file)
@@ -14,7 +14,7 @@ jQuery(document).ready(function() {
 
        jQuery('#background-color').keyup(function() {
                var _hex = jQuery('#background-color').val(), hex = _hex;
-               if ( hex[0] != '#' )
+               if ( hex.charAt(0) != '#' )
                        hex = '#' + hex;
                hex = hex.replace(/[^#a-fA-F0-9]+/, '');
                if ( hex != _hex )