diff --git a/o2web/source/x_component_process_Xform/Attachment.js b/o2web/source/x_component_process_Xform/Attachment.js index 87c98f10347a0c1c7faea85ecda97276d7885f32..3354ad214131d2a5f80b71c9f5ce80979a63d9c9 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));