mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-08-27 05:31:10 -05:00
Support register buttons in popups (#1574)
This commit is contained in:
12
js/client.js
12
js/client.js
@@ -2393,7 +2393,17 @@ function toId() {
|
||||
|
||||
close: function () {
|
||||
app.closePopup();
|
||||
}
|
||||
},
|
||||
|
||||
register: function () {
|
||||
var registered = app.user.get('registered');
|
||||
app.closePopup();
|
||||
if (!registered || registered.userid !== app.user.get('userid')) {
|
||||
app.addPopup(RegisterPopup);
|
||||
} else {
|
||||
app.addPopupMessage("You are already registered!");
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
var PromptPopup = this.PromptPopup = Popup.extend({
|
||||
|
||||
Reference in New Issue
Block a user