mirror of
https://github.com/PitPik/tinyColorPicker
synced 2025-07-12 12:34:30 -06:00
preventFocus update
This commit is contained in:
parent
7123fb0fec
commit
3873bbb1e7
@ -287,14 +287,15 @@
|
|||||||
mode = value.split('('),
|
mode = value.split('('),
|
||||||
$elm = findElement($(this));
|
$elm = findElement($(this));
|
||||||
// save initial color mode and set color and bgColor
|
// 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.
|
options.doRender && $elm.
|
||||||
css({'background-color': value,
|
css({'background-color': value,
|
||||||
'color': function() {
|
'color': function() {
|
||||||
return _color.setColor(value).
|
return _color.setColor(value).
|
||||||
rgbaMixBGMixCustom.luminance > 0.22 ? '#222' : '#ddd'
|
rgbaMixBGMixCustom.luminance > 0.22 ? '#222' : '#ddd'
|
||||||
}
|
}
|
||||||
}).attr('readonly', _options.preventFocus);
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
})(window.jQuery, Colors);
|
})(window.jQuery, Colors);
|
File diff suppressed because one or more lines are too long
2
jqColorPicker.min.js
vendored
2
jqColorPicker.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user