Permalink
Browse files

Added a prompt to users to type in the box to start chatting and also…

… a button to always enable chat.. @0ip will need to re-style this if it gets merged
  • Loading branch information...
1 parent f0d7314 commit 618082c35e8640bbd4d16feeee469abace8fc79a @JohnMcLear JohnMcLear committed Feb 2, 2012
Showing with 18 additions and 159 deletions.
  1. +15 −0 static/css/pad.css
  2. +2 −1 static/js/chat.js
  3. +0 −157 static/js/jquery-ui.js
  4. +1 −1 static/pad.html
View
@@ -1290,3 +1290,18 @@ label {
font-size: 11px;
font-weight: bold;
}
+
+#chattextholder{
+ text-align:center;
+ padding-top:40px;
+ font-size: 15px;
+ color: #ddd;
+}
+
+#chattextholder button{
+ width:100%;
+ font-size: 11px;
+ position:absolute;
+ bottom:0px;
+ left:0px;
+}
View
@@ -75,6 +75,7 @@ var chat = (function()
var text = $("#chatinput").val();
this._pad.collabClient.sendMessage({"type": "CHAT_MESSAGE", "text": text});
$("#chatinput").val("");
+ $('#chattextholder').hide();
},
addMessage: function(msg, increment)
{
@@ -137,7 +138,7 @@ var chat = (function()
$('#chatthrob').effect("pulsate", {times:1,mode:"hide"},2000);
}
}
-
+ $('#chattextholder').hide();
self.scrollDown();
},
Oops, something went wrong.

0 comments on commit 618082c

Please sign in to comment.