diff --git a/js/client-mainmenu.js b/js/client-mainmenu.js index b453ae73d..4f7d967e3 100644 --- a/js/client-mainmenu.js +++ b/js/client-mainmenu.js @@ -507,7 +507,9 @@ var buf = '
'; + this.$el.html(buf); + return; + } } var name = (data.name || ''); @@ -2469,6 +2488,15 @@ var css = hashColor(toUserid(name)).slice(6, -1); preview.css('color', css); }, + force: function () { + var sourceEl = this.sourceEl; + this.close(); + app.addPopup(LoginPopup, { + force: true, + sourceEl: sourceEl, + sourcePopup: app.popups[app.popups.length - 1] + }); + }, submit: function (data) { this.close(); if (!$.trim(data.username)) return;