Browse Source

Merge branch 'fix/selector.click_item_execption' into 'develop'

Merge of fix/selector.click_item_execption to develop

See merge request o2oa/o2oa!1245
蔡祥熠 5 years ago
parent
commit
7dd2d3c697
1 changed files with 3 additions and 3 deletions
  1. 3 3
      o2web/source/x_component_Selector/Person.js

+ 3 - 3
o2web/source/x_component_Selector/Person.js

@@ -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 );