Improve Formats dropdown in Watch Battle

This commit is contained in:
Guangcong Luo
2016-02-21 13:43:09 -05:00
parent 6b186a6e3a
commit c98ebe8b3a
2 changed files with 2 additions and 2 deletions

View File

@@ -922,7 +922,7 @@
var $teamButton = this.sourceEl.closest('form').find('button[name=team]');
if ($teamButton.length) $teamButton.replaceWith(app.rooms[''].renderTeams(format));
}
this.sourceEl.val(format).html(Tools.escapeFormat(format));
this.sourceEl.val(format).html(Tools.escapeFormat(format) || '(Select a format)');
this.close();
}

View File

@@ -120,7 +120,7 @@
this.$el.addClass('ps-room-light').addClass('scrollable');
var buf = '<div class="pad"><button class="button" style="float:right;font-size:10pt;margin-top:3px" name="close"><i class="fa fa-times"></i> Close</button><div class="roomlist"><p><button class="button" name="refresh"><i class="fa fa-refresh"></i> Refresh</button> <span style="' + Tools.getPokemonIcon('meloetta-pirouette') + ';display:inline-block;vertical-align:middle" class="picon" title="Meloetta is PS\'s mascot! The Pirouette forme is Fighting-type, and represents our battles."></span></p>';
buf += '<p><label>Format:</label><br /><button class="select formatselect" name="selectFormat">(All formats)</button></p>';
buf += '<p><label class="label">Format:</label><button class="select formatselect" name="selectFormat">(All formats)</button></p>';
buf += '<div class="list"><p>Loading...</p></div>';
buf += '</div></div>';