mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 15:16:59 +00:00
Fix custom background selector for IE7. props duck_, fixes #14152.
git-svn-id: https://develop.svn.wordpress.org/trunk@15966 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user