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

[流程管理]修复选人时可能出现两次人员选择界面的问题

unknown 5 лет назад
Родитель
Сommit
10ef7170d2

+ 2 - 1
o2web/source/x_component_cms_Xform/Readerfield.js

@@ -25,9 +25,10 @@ MWF.xApplication.cms.Xform.Readerfield = MWF.CMSReaderfield =  new Class({
     setDescriptionEvent: function(){
         if (this.descriptionNode){
             this.descriptionNode.addEvents({
-                "mousedown": function(){
+                "mousedown": function(ev){
                     this.descriptionNode.setStyle("display", "none");
                     this.clickSelect();
+                    ev.stopPropagation();
                 }.bind(this)
             });
         }

+ 2 - 1
o2web/source/x_component_process_Xform/Org.js

@@ -48,9 +48,10 @@ MWF.xApplication.process.Xform.Org = MWF.APPOrg =  new Class({
     setDescriptionEvent: function(){
         if (this.descriptionNode){
             this.descriptionNode.addEvents({
-                "mousedown": function(){
+                "mousedown": function( ev ){
                     this.descriptionNode.setStyle("display", "none");
                     this.clickSelect();
+                    ev.stopPropagation();
                 }.bind(this)
             });
         }

+ 2 - 1
o2web/source/x_component_process_Xform/Orgfield.js

@@ -25,9 +25,10 @@ MWF.xApplication.process.Xform.Orgfield = MWF.APPOrgfield =  new Class({
     setDescriptionEvent: function(){
         if (this.descriptionNode){
             this.descriptionNode.addEvents({
-                "mousedown": function(){
+                "mousedown": function( ev ){
                     this.descriptionNode.setStyle("display", "none");
                     this.clickSelect();
+                    ev.stopPropagation();
                 }.bind(this)
             });
         }

+ 2 - 1
o2web/source/x_component_process_Xform/Personfield.js

@@ -48,9 +48,10 @@ MWF.xApplication.process.Xform.Personfield = MWF.APPPersonfield =  new Class({
     setDescriptionEvent: function(){
         if (this.descriptionNode){
             this.descriptionNode.addEvents({
-                "mousedown": function(){
+                "mousedown": function( ev ){
                     this.descriptionNode.setStyle("display", "none");
                     this.clickSelect();
+                    ev.stopPropagation();
                 }.bind(this)
             });
         }