Explorar o código

修复clickitem报错的问题

unknown %!s(int64=5) %!d(string=hai) anos
pai
achega
a8b78c7ef4
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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();
                 this.outItem();
             }.bind(this),
             }.bind(this),
             "click": function(){
             "click": function(){
-                this.clickItem( true );
+                this.clickItem( null, true );
             }.bind(this)
             }.bind(this)
         });
         });
     },
     },
-    clickItem: function( checkValid ){
+    clickItem: function( callback, checkValid ){
         if ( layout.mobile && this.selector.options.count.toInt()===1){
         if ( layout.mobile && this.selector.options.count.toInt()===1){
             this.selectedSingle( checkValid );
             this.selectedSingle( checkValid );
         }else{
         }else{
@@ -2006,7 +2006,7 @@ MWF.xApplication.Selector.Person.ItemSelected = new Class({
     getData: function(callback){
     getData: function(callback){
         if (callback) callback();
         if (callback) callback();
     },
     },
-    clickItem: function( checkValid ){
+    clickItem: function( callback, checkValid ){
         if (this.items.length){
         if (this.items.length){
             this.items.each(function(item){
             this.items.each(function(item){
                 item.unSelected( checkValid );
                 item.unSelected( checkValid );