kiwi.gateway.bind('connecting', this.networkConnecting, this);\r
\r
kiwi.gateway.bind('onirc_error', function (data) {\r
+ $('button', this.$el).attr('disabled', null);\r
+\r
if (data.error == 'nickname_in_use') {\r
this.setStatus('Nickname already taken');\r
this.show('nick_change');\r
this.submitLogin(event);\r
}\r
\r
+ $('button', this.$el).attr('disabled', 1);\r
return false;\r
},\r
\r
submitLogin: function (event) {\r
+ // If submitting is disabled, don't do anything\r
+ if ($('button', this.$el).attr('disabled')) return;\r
+ \r
var values = {\r
nick: $('.nick', this.$el).val(),\r
server: $('.server', this.$el).val(),\r
\r
showError: function (event) {\r
this.setStatus('Error connecting', 'error');\r
+ $('button', this.$el).attr('disabled', null);\r
this.show();\r
}\r
});\r