WIP installer refactor fixes 28978: Color picker, remove need for button
[TFS Changeset #77527]
This commit is contained in:
@@ -1,13 +1,22 @@
|
||||
jQuery('input.color').ColorPicker({
|
||||
onSubmit: function(hsb, hex, rgb, el) {
|
||||
jQuery(el).val('#' + hex);
|
||||
jQuery(el).ColorPickerHide();
|
||||
jQuery(el).trigger('change');
|
||||
},
|
||||
onBeforeShow: function () {
|
||||
jQuery(this).ColorPickerSetColor(this.value);
|
||||
}
|
||||
var activecolorpicker;
|
||||
|
||||
jQuery('input.color').ColorPicker({
|
||||
onSubmit: function (hsb, hex, rgb, el) {
|
||||
jQuery(el).val('#' + hex);
|
||||
jQuery(el).ColorPickerHide();
|
||||
jQuery(el).trigger('change');
|
||||
},
|
||||
onBeforeShow: function () {
|
||||
activecolorpicker = this;
|
||||
jQuery(this).ColorPickerSetColor(this.value);
|
||||
},
|
||||
onChange: function (hsb, hex, rgb) {
|
||||
|
||||
jQuery(activecolorpicker).val('#' + hex);
|
||||
jQuery(activecolorpicker).trigger('change');
|
||||
}
|
||||
})
|
||||
.bind('keyup', function(){
|
||||
.bind('keyup', function () {
|
||||
jQuery(this).ColorPickerSetColor(this.value);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user