123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- Namespace.register("U.MD.U.LO");
- U.MD.U.LO.logoutSystem = function () {
-
- if (US.userInfo.userid) {
-
- U.UF.UI.confirm("Do you want to logout of" + US.userInfo.username + "'s account", function () {
- U.MD.U.LO.logout();
- });
- }
- }
- U.MD.U.LO.logout = function () {
- U.MD.U.LO.clearCookie();
- U.MD.U.LO.emptyUserInfo();
- $('#UI_Login')[0] && $('#UI_Login')[0].contentWindow.U.MD.U.OT.logout();
-
- if ($("#U_MD_D_BDI")[0]) {
-
- U.MD.U.LO.logoutStyle();
- U.MD.D.T.taskbar.clear();
- U.UF.UI.form.closeWindows();
- }
- }
- U.MD.U.LO.clearCookie = function () {
-
- if (US.userInfo.userid) {
- var _iscookie = U.UF.Cookie.get("usestudiosso", "userid").indexOf(US.userInfo.userid) > -1;
-
- if (_iscookie) {
-
- U.A.Request(US.AUTH, ["UserOffline", US.userInfo.userid], function () { });
- }
- }
- }
- U.MD.U.LO.emptyUserInfo = function () {
- US.userInfo = {};
- US.friend = {};
- U.MD.D.B.setBackgroundImage(U.MD.D.B.url);
- }
- U.MD.U.LO.logoutStyle = function () {
-
- $("#U_MD_D_BDI").addAttrArray({
- "innerHTML": "",
- "className": "U_MD_D_BDI U_Img"
- });
-
- var _childel = $("#U_MD_D_BDL").childs();
- _childel[0].style.display = _childel[1].style.display = "block";
- _childel[2].style.display = "none";
-
- $("#U_MD_F_H_R").css("display", "none");
-
- $("#U_MD_D_MG_OA").Parent(2).style.display = "none";
-
-
- }
|