From 4adc1f554f39d4ee80c3074bb9cbc7c3df9be6a7 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 13 Oct 2020 14:52:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=BE=E7=BD=AE=E9=99=84?= =?UTF-8?q?=E4=BB=B6=E6=9D=83=E9=99=90=E7=9A=84=E6=97=B6=E5=80=99=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=88=B7=E6=96=B0=E6=8E=92=E5=BA=8F=E5=88=97=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- o2web/source/x_component_process_Xform/Attachment.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/o2web/source/x_component_process_Xform/Attachment.js b/o2web/source/x_component_process_Xform/Attachment.js index 87c98f1034..3354ad2141 100644 --- a/o2web/source/x_component_process_Xform/Attachment.js +++ b/o2web/source/x_component_process_Xform/Attachment.js @@ -701,6 +701,7 @@ MWF.xApplication.process.Xform.AttachmentController = new Class({ } }, setAttachmentConfig: function (readInput, editInput, controllerInput) { + debugger; if (this.selectedAttachments.length) { var readList = readInput.retrieve("data-value"); var editList = editInput.retrieve("data-value"); @@ -741,6 +742,7 @@ MWF.xApplication.process.Xform.AttachmentController = new Class({ }); } + var loadedCount = 0; this.selectedAttachments.each(function (att) { att.data.readUnitList = readUnitList; att.data.readIdentityList = readIdentityList; @@ -765,6 +767,10 @@ MWF.xApplication.process.Xform.AttachmentController = new Class({ attachment.configAction.setStyle("display","none"); } } + loadedCount++; + if( loadedCount === this.selectedAttachments.length ){ + this.checkActions(); + } }.bind(this)) }.bind(this)); }.bind(this)); -- GitLab