X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/a5227bf01edbe6660486c9f5c0f0ed7b7fea3130..refs/tags/wordpress-3.1:/wp-admin/js/custom-background.dev.js diff --git a/wp-admin/js/custom-background.dev.js b/wp-admin/js/custom-background.dev.js index 5b4b1543..1a46d55d 100644 --- a/wp-admin/js/custom-background.dev.js +++ b/wp-admin/js/custom-background.dev.js @@ -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 )