Commit 43ee7536 authored by hancong03's avatar hancong03

按钮被禁用后禁止点击关闭事件

Signed-off-by: 's avatarhancong03 <121371790@qq.com>
parent 2f15bc11
......@@ -89,6 +89,7 @@
initSelectItem: function(){
var me = this,
options = me.data( "options" ),
labelClass = "."+labelClassName;
me.root().delegate('.' + itemClassName, 'click', function(){
......@@ -96,6 +97,10 @@
var $li = $(this),
index = $li.attr('data-item-index');
if ( options.disabled[ index ] ) {
return false;
}
me.trigger('comboboxselect', {
index: index,
label: $li.find(labelClass).text(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment