diff --git a/www/assets/js/functions.js b/www/assets/js/functions.js
index 32272a9a..66bf0fe5 100644
--- a/www/assets/js/functions.js
+++ b/www/assets/js/functions.js
@@ -1016,11 +1016,11 @@ function applyOpts() {
$("#videodiv").remove();
}
+ $("#chatbtn").remove();
if(USEROPTS.chatbtn) {
- $("#chatline").removeClass("span5").addClass("span4")
- .css("float", "left");
- var btn = $("").addClass("btn span1")
+ var btn = $("").addClass("btn btn-block")
.text("Send")
+ .attr("id", "chatbtn")
.appendTo($("#chatdiv"));
btn.click(function() {
if($("#chatline").val().trim()) {