lsc 2 år sedan
förälder
incheckning
166a1129dd
1 ändrade filer med 10 tillägg och 17 borttagningar
  1. 10 17
      js/Desktop/DeskTop.js

+ 10 - 17
js/Desktop/DeskTop.js

@@ -2800,7 +2800,7 @@ U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
                 _iframe.contentWindow.document.body.appendChild(script1);
                 _iframe.contentWindow.document.body.appendChild(script2);
                 _iframe.contentWindow.document.body.appendChild(script4);
-                U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2',_iframe)
+                U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
             })
         } else {
             _iframe.onload = () => {
@@ -2891,20 +2891,13 @@ U.MD.D.I.getEditorContent = function (iframe) {
     });
 }
 
-U.MD.D.I.getContent = 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) {
-            if (res.value[0].length > 0) {
-                // resolve(res.value[0][0].text);
-                iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
-                    $(fileInput).val('');
-                });
-            }
-        }, [], { "type": "GET", "withCredentials": true });
-
-        U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
-            if (res.value[0].length > 0) {
-                US.userInfo = res.value[0][0];
-                $(".userName")[0].innerHTML = US.userInfo.username;
-            }
-        }, [], { "type": "GET", "withCredentials": true });
+U.MD.D.I.getContent = 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) {
+        if (res.value[0].length > 0) {
+            // resolve(res.value[0][0].text);
+            iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
+                $(fileInput).val('');
+            });
+        }
+    }, [], { "type": "GET", "withCredentials": true });
 }