mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 15:22:35 -05:00
Merge pull request #475 from sobolews/teambuilder-validate
Add a validate button to the teambuilder
This commit is contained in:
@@ -509,7 +509,7 @@
|
||||
}
|
||||
}
|
||||
if (curSection) buf += '</optgroup>';
|
||||
buf += '</select></li>';
|
||||
buf += '</select><button name="validate"><i class="icon-check"></i> Validate</button></li>';
|
||||
}
|
||||
if (!this.curSetList.length) {
|
||||
buf += '<li><em>you have no pokemon lol</em></li>';
|
||||
@@ -657,6 +657,14 @@
|
||||
this.saveFlag = true;
|
||||
Storage.saveTeams();
|
||||
},
|
||||
validate: function () {
|
||||
if (!this.curTeam.format) {
|
||||
app.addPopupMessage('You need to pick a format to validate your team.');
|
||||
return;
|
||||
}
|
||||
app.sendTeam(this.curTeam);
|
||||
app.send('/vtm ' + this.curTeam.format);
|
||||
},
|
||||
teamNameChange: function (e) {
|
||||
this.curTeam.name = ($.trim(e.currentTarget.value) || 'Untitled ' + (this.curTeamLoc + 1));
|
||||
e.currentTarget.value = this.curTeam.name;
|
||||
|
||||
@@ -2018,7 +2018,7 @@ a.ilink:hover {
|
||||
}
|
||||
.teamchart li.format-select select,
|
||||
.teamchart li.format-select option {
|
||||
font: 12pt Verdana, sans-serif;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.majorbutton {
|
||||
|
||||
Reference in New Issue
Block a user