颜色插件js优化
parent
f23b985ed3
commit
152fe30a2e
|
|
@ -1872,12 +1872,14 @@ $(function()
|
|||
var style = o.context.dataset.colorStyle || 'color';
|
||||
$(o.context.dataset.inputTag).css(style, color);
|
||||
$(o.context.dataset.colorTag).val(color);
|
||||
$(o.context.dataset.colorTag).trigger('change');
|
||||
},
|
||||
reset:function(o)
|
||||
{
|
||||
var style = o.context.dataset.colorStyle || 'color';
|
||||
$(o.context.dataset.inputTag).css(style, '');
|
||||
$(o.context.dataset.colorTag).val('');
|
||||
$(o.context.dataset.colorTag).trigger('change');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue