Ext颜色选择器

[size=medium][color=red]这个控件虽然进行了一次BUG修复但是还是有问题,在IE下还是不稳定,偶尔会有问题。请谨慎使用!!![/color][/size]

这是老外扩展的一个Ext颜色选择器,非常的好用
效果图1:http://dl.iteye.com/upload/attachment/271551/edbcf118-cb6d-3c6c-ac66-1a35c91c8ca4.jpg

效果图2:http://dl.iteye.com/upload/attachment/271555/f575c7f9-27fa-3108-9a7f-46524725445c.jpg

[color=red][size=medium]BUG[/size][/color]
我在使用的过程中发现这个选择器在 IE有一个bug,找了很久终于找到了修复方法

Hi Bucs,
i test my latest version of control and find, that it works fine in IE7(IE8 compatibility mode), IE8 and FF. Problem as i understand related to vtypes, to fix it, replace code in file Ext.ux.form.ColorPickerFieldPlus

Ext.form.VTypes["hex"] = /^#?([a-f]|[A-F]|[0-9]){3}(([a-f]|[A-F]|[0-9]){3})?$/;


on
Ext.form.VTypes["hex"] = function(v){ return /^#?([a-f]|[A-F]|[0-9]){3}(([a-f]|[A-F]|[0-9]){3})?$/.test(v); };



执行上面的替换后就OK了,哈哈

参考:[url]http://www.sencha.com/forum/showthread.php?65537-Ext.ux.form.ColorPickerFieldPlus&p=333170#post333170[/url]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值