From 6f040fcf764fbe4496a4ca5c5521585dd5ff2eff Mon Sep 17 00:00:00 2001 From: urkerab Date: Fri, 25 Dec 2015 13:03:09 +0000 Subject: [PATCH] Properly close and hide the Rooms room when you click Hide --- js/client-rooms.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/js/client-rooms.js b/js/client-rooms.js index ae160e2f5..95cb0d2bf 100644 --- a/js/client-rooms.js +++ b/js/client-rooms.js @@ -91,14 +91,8 @@ app.addPopup(BattleListPopup); }, closeHide: function () { + app.sideRoom = app.curSideRoom = null; this.close(); - if (app.curSideRoom) { - app.curSideRoom.hide(); - app.curSideRoom = null; - } - app.curRoom.show('full'); - app.topbar.updateTabbar(); - if (app.rooms['']) app.rooms[''].updateRightMenu(); }, finduser: function () { app.addPopupPrompt("Username", "Open", function (target) {