turn off keypress trigger if send button is disabled
@@ -211,8 +211,10 @@ of patent rights can be found in the PATENTS file in the same directory.
// Handling keypress event
$(document).keypress(function(e) {
if (e.which == 13) {
+ if (!($("button#id_send_msg_button").prop("disabled") === true)) {
$("button#id_send_msg_button").click();
}
+ }
});
/* ================= State variables ================= */
