ソースを参照

修复移动端下载附件参数错误的bug

fancy 5 年 前
コミット
8b1eaf1af9
1 ファイル変更1 行追加1 行削除
  1. 1 1
      o2web/source/x_component_process_Xform/Attachment.js

+ 1 - 1
o2web/source/x_component_process_Xform/Attachment.js

@@ -1473,7 +1473,7 @@ MWF.xApplication.process.Xform.Attachment = MWF.APPAttachment = new Class({
                 if (window.o2android && window.o2android.downloadAttachment) {
                 if (window.o2android && window.o2android.downloadAttachment) {
                     window.o2android.downloadAttachment(att.data.id);
                     window.o2android.downloadAttachment(att.data.id);
                 } else if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.downloadAttachment) {
                 } else if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.downloadAttachment) {
-                    window.webkit.messageHandlers.downloadAttachment.postMessage(att.data.id, this.json.id);
+                    window.webkit.messageHandlers.downloadAttachment.postMessage({ "id": att.data.id, "site": this.json.id });
                 } else {
                 } else {
 
 
                     if (layout.mobile) {
                     if (layout.mobile) {