Skip to content

Commit

Permalink
Partial fix for #85
Browse files Browse the repository at this point in the history
  • Loading branch information
Gioyik committed Nov 8, 2013
1 parent 42a2bac commit d814ee6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions scripts/waalt/account.js
Expand Up @@ -191,6 +191,9 @@ var Account = function (core) {
}

// Bring account to foreground
this.focus = function () {
$("section#chat div#text").focus();
}
this.show = function () {
$('section#main').data('user', this.core.user);
$('section#main').data('provider', this.core.provider);
Expand Down
4 changes: 2 additions & 2 deletions scripts/waalt/messenger.js
Expand Up @@ -32,11 +32,11 @@ var Messenger = {
stamp: localstamp
});
msg.send();
$$("section#chat div#text").empty();
$$("section#chat div#text").empty().focus();
App.audio('sent');
}
$('section#chat article#main button#plus').show();
$('section#chat article#main button#say').hide();
$('section#chat article#main button#say').hide().focus();
},

csn: function (state) {
Expand Down

0 comments on commit d814ee6

Please sign in to comment.