提交 ad831b0e 编写于 作者: U unknown

修复clickitem报错的问题

上级 70451b7a
......@@ -1762,11 +1762,11 @@ MWF.xApplication.Selector.Person.Item = new Class({
this.outItem();
}.bind(this),
"click": function(){
this.clickItem( true );
this.clickItem( null, true );
}.bind(this)
});
},
clickItem: function( checkValid ){
clickItem: function( callback, checkValid ){
if ( layout.mobile && this.selector.options.count.toInt()===1){
this.selectedSingle( checkValid );
}else{
......@@ -2006,7 +2006,7 @@ MWF.xApplication.Selector.Person.ItemSelected = new Class({
getData: function(callback){
if (callback) callback();
},
clickItem: function( checkValid ){
clickItem: function( callback, checkValid ){
if (this.items.length){
this.items.each(function(item){
item.unSelected( checkValid );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册