Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Bug 822715][SMS] The text is cleared in an answer when we go back to…
… the screen r=fcampo
  • Loading branch information
borjasalguero committed Dec 19, 2012
1 parent 20f9c39 commit daf2ce2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion apps/sms/js/sms.js
Expand Up @@ -143,7 +143,14 @@ var MessageManager = {
var num = this.getNumFromHash();
if (num) {
var filter = this.createFilter(num);
this.getMessages(ThreadUI.renderMessages, filter);
var typedText = ThreadUI.input.value;
this.getMessages(ThreadUI.renderMessages, filter, true,
function() {
// Restored previous typed text.
ThreadUI.input.value = typedText;
ThreadUI.input.focus();
ThreadUI.enableSend();
});
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/sms/style/sms.css
Expand Up @@ -462,7 +462,7 @@ form.bottom[role="search"].new-sms-form {
}

#send-message.active {
background: #aaf;
background: #008aaa;
}

#message-to-send {
Expand Down

0 comments on commit daf2ce2

Please sign in to comment.