Repeat incorrect password fix #243
authorDarren <darren@darrenwhitlen.com>
Tue, 5 Nov 2013 16:31:25 +0000 (16:31 +0000)
committerDarren <darren@darrenwhitlen.com>
Tue, 5 Nov 2013 16:31:25 +0000 (16:31 +0000)
client/src/views/serverselect.js

index 5a2544b89186bf56e2190bb0a42324bdec6c4745..ceb11dafff8159eebe894f569f6b8a06603a8f9f 100644 (file)
@@ -192,6 +192,11 @@ _kiwi.view.ServerSelect = function () {
                 $('.more', this.$el).hide();
                 $('.show_more', this.$el).hide();
                 $('input.nick', this.$el).select();
+
+            } else if (new_state === 'enter_password') {
+                $('.more', this.$el).hide();
+                $('.show_more', this.$el).hide();
+                $('input.password', this.$el).select();
             }
 
             state = new_state;
@@ -259,7 +264,7 @@ _kiwi.view.ServerSelect = function () {
                 break;
             case 'password_mismatch':
                 this.setStatus(_kiwi.global.i18n.translate('client_views_serverselect_password_incorrect').fetch());
-                this.show('nick_change');
+                this.show('enter_password');
                 this.$el.find('.password').select();
                 break;
             }