Fix custom background selector for IE7. props duck_, fixes #14152.

git-svn-id: http://svn.automattic.com/wordpress/trunk@15966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin
2010-10-26 03:42:14 +00:00
parent b68d28a728
commit 484aebcf5c
3 changed files with 3 additions and 3 deletions

View 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 )