Select previous name on the /nick dialogue

This commit is contained in:
Cathy J. Fitzpatrick 2013-05-24 23:40:25 -06:00
parent d1138261b0
commit e19f1cd23e

View File

@ -1824,6 +1824,12 @@
submit: function(data) {
this.close();
app.user.rename(data.username);
},
domInitialize: function() {
var $input = this.$('input[name=username]');
if ('setSelectionRange' in $input[0]) {
$input[0].setSelectionRange(0, $input.val().length);
}
}
});