1 _kiwi
.view
.NickChangeBox
= Backbone
.View
.extend({
3 'submit': 'changeNick',
4 'click .cancel': 'close'
7 initialize: function () {
8 this.$el
= $($('#tmpl_nickchange').html());
12 // Add the UI component and give it focus
13 _kiwi
.app
.controlbox
.$el
.prepend(this.$el
);
14 this.$el
.find('input').focus();
16 this.$el
.css('bottom', _kiwi
.app
.controlbox
.$el
.outerHeight(true));
24 changeNick: function (event
) {
27 event
.preventDefault();
29 _kiwi
.app
.connections
.active_connection
.gateway
.changeNick(this.$el
.find('input').val(), function (err
, val
) {