lsc %!s(int64=2) %!d(string=hai) anos
pai
achega
6bf12b5824
Modificáronse 1 ficheiros con 10 adicións e 5 borrados
  1. 10 5
      js/Desktop/DeskTop.js

+ 10 - 5
js/Desktop/DeskTop.js

@@ -6564,7 +6564,7 @@ U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
         if (str == 'cocoPi') {
             _iframe = _formdiv.querySelector('iframe')
             let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
-                // U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, _iframe)
+                U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
             })
             if (onloadListener) {
                 _iframe.contentDocument.location.reload()
@@ -6601,11 +6601,16 @@ U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
 }
 
 
-U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, type, iframe) {
-    U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
+U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
+    U.A.Request(US.Config.pbl + "selectWorksDetail2-u?uid=" + uid + "&cid=" + cid + "&stage=" + s + "&task=" + task + "&tool=" + t + "&type=" + type + "&atool=" + atool, [], function (res) {
         if (res.value[0].length > 0) {
-            // resolve(res.value[0][0].text);
-            iframe.loadingXml(res.value[0][0].text)
+            if(atool == 57){
+                iframe.contentWindow.loadingXml(res.value[0][0].content)
+            }
+        }else{
+            if(atool == 57){
+                iframe.contentWindow.loadingXml()
+            }
         }
     }, [], { "type": "GET", "withCredentials": true });
 }