}\r
});\r
\r
-kiwi.view.NickChangeBox = Backbone.View.extend({
+kiwi.view.NickChangeBox = Backbone.View.extend({\r
events: {\r
'submit': 'changeNick',\r
'click .cancel': 'close'\r
\r
showMore: function (event) {\r
$('.more', this.$el).slideDown('fast');\r
+ $('.server', this.$el).select();\r
},\r
\r
populateFields: function (defaults) {\r
\r
if (new_state === 'all') {\r
$('.show_more', this.$el).show();\r
- $('.nick', this.$el).focus();\r
\r
} else if (new_state === 'more') {\r
$('.more', this.$el).slideDown('fast');\r
// Instance of InputPreProcessor\r
preprocessor: null,\r
\r
- events: {
- 'keydown input.inp': 'process',
+ events: {\r
+ 'keydown input.inp': 'process',\r
'click .nick': 'showNickChange'\r
},\r
\r
<input type="text" class="nick" id="server_select_nick"> <br />
<button type="submit">Connect..</button> <br />
- <a class="show_more">More</a>
+ <a href="" onclick="return false;" class="show_more">More</a>
</div>
<div class="more">