[communications] [minor] Code cleanup so it can be extended by custom script

This commit is contained in:
Rushabh Mehta
2013-08-29 13:53:36 +05:30
parent 8ba2f6396b
commit 46ec268e9b
4 changed files with 14 additions and 19 deletions

View File

@@ -26,7 +26,12 @@ $(document).ready(function() {
sender: email,
message: message,
callback: function(r) {
msgprint(r.message);
if(r.status==="okay") {
msgprint(r.message or "Sent")
} else {
msgprint("There were errors");
console.log(r.exc);
}
$(':input').val('');
}
});