Просмотр исходного кода

Merge branch 'fix/Selector.htmlmode_defaultvalue_execption' into 'develop'

Merge of fix/Selector.htmlmode_defaultvalue_execption 修复只选择一人的情况,手机端默认选中的人无效的问题 to develop

See merge request o2oa/o2oa!1648
蔡祥熠 5 лет назад
Родитель
Сommit
d49001f652
1 измененных файлов с 18 добавлено и 8 удалено
  1. 18 8
      o2web/source/x_component_Selector/Person.js

+ 18 - 8
o2web/source/x_component_Selector/Person.js

@@ -451,11 +451,21 @@ MWF.xApplication.Selector.Person = new Class({
 
         if( contentNode )this.contentNode = contentNode;
         if( this.options.contentUrl || isHTML ){
-            if (this.options.count.toInt()!==1) this.loadSelectedNodeHTML();
+            // if (this.options.count.toInt()!==1){
+            //     this.loadSelectedNodeHTML();
+            //     this.loadSelectNodeHTML(contentNode);
+            // }else{
+            //     this.setSelectedItem();
+            //     this.loadSelectNodeHTML(contentNode);
+            // }
+
+            this.loadSelectedNodeHTML();
             this.loadSelectNodeHTML(contentNode);
         }else{
             if (layout.mobile){
-                if (this.options.count.toInt()!==1) this.loadSelectedNodeMobile();
+                // if (this.options.count.toInt()!==1) this.loadSelectedNodeMobile();
+
+                this.loadSelectedNodeMobile();
                 this.loadSelectNodeMobile();
             }else{
                 this.loadSelectNode();
@@ -1038,12 +1048,12 @@ MWF.xApplication.Selector.Person = new Class({
 
         this.setSelectedItem();
 
-        MWF.require("MWF.widget.ScrollBar", function(){
-            var _self = this;
-            new MWF.widget.ScrollBar(this.selectedScrollNode, {
-                "style":"xApp_Organization_Explorer", "where": "before", "distance": 100, "friction": 4,"axis": {"x": false, "y": true}
-            });
-        }.bind(this));
+        // MWF.require("MWF.widget.ScrollBar", function(){
+        //     var _self = this;
+        //     new MWF.widget.ScrollBar(this.selectedScrollNode, {
+        //         "style":"xApp_Organization_Explorer", "where": "before", "distance": 100, "friction": 4,"axis": {"x": false, "y": true}
+        //     });
+        // }.bind(this));
         this.selectedScrollNode.setStyle("display", "none");
     },