2
0
mirror of https://github.com/PitPik/tinyColorPicker synced 2025-07-12 12:34:30 -06:00

preventFocus update

This commit is contained in:
peterd 2015-02-06 21:47:06 +01:00
parent 7123fb0fec
commit 3873bbb1e7
3 changed files with 5 additions and 4 deletions

View File

@ -287,14 +287,15 @@
mode = value.split('('),
$elm = findElement($(this));
// save initial color mode and set color and bgColor
$elm.data('colorMode', mode[1] ? mode[0].substr(0, 3) : 'HEX');
$elm.data('colorMode', mode[1] ? mode[0].substr(0, 3) : 'HEX').
attr('readonly', _options.preventFocus);
options.doRender && $elm.
css({'background-color': value,
'color': function() {
return _color.setColor(value).
rgbaMixBGMixCustom.luminance > 0.22 ? '#222' : '#ddd'
}
}).attr('readonly', _options.preventFocus);
});
});
};
})(window.jQuery, Colors);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long