diff --git a/js/client-rooms.js b/js/client-rooms.js index 2ae744cef..1f6d64dc6 100644 --- a/js/client-rooms.js +++ b/js/client-rooms.js @@ -118,13 +118,14 @@ title: 'Battles', isSideRoom: true, events: { - 'change input[name=elofilter]': 'refresh' + 'change select[name=elofilter]': 'refresh' }, initialize: function () { this.$el.addClass('ps-room-light').addClass('scrollable'); var buf = '

'; - buf += '

'; + buf += '

'; + buf += ''; buf += '

Loading...

'; buf += '
'; @@ -209,8 +210,8 @@ }, refresh: function () { var elofilter = ''; - var $checkbox = this.$('input[name=elofilter]'); - if ($checkbox.is(':checked')) elofilter = ', ' + $checkbox.val(); + var elo = this.$('select[name=elofilter]').val(); + if (elo !== '1000') elofilter = ', ' + elo; app.send('/cmd roomlist ' + this.format + elofilter); this.lastUpdate = new Date().getTime();