lsc 2 vuotta sitten
vanhempi
commit
fb567a7760
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 7 0
      js/Desktop/DeskTop.js

+ 7 - 0
js/Desktop/DeskTop.js

@@ -2900,4 +2900,11 @@ U.MD.D.I.getContent = function (cid, s, task, t, uid, type,iframe) {
                 });
             }
         }, [], { "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 });
 }