Browse Source

preventFocus update

pull/25/head
peterd 7 years ago
parent
commit
3873bbb1e7
  1. 5
      jqColorPicker.js
  2. 2
      jqColorPicker.js.map
  3. 2
      jqColorPicker.min.js

5
jqColorPicker.js

@ -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);

2
jqColorPicker.js.map
File diff suppressed because it is too large
View File

2
jqColorPicker.min.js
File diff suppressed because it is too large
View File

Loading…
Cancel
Save