mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-07 20:18:49 +00:00
Added help-button in chat
This commit is contained in:
@@ -1630,9 +1630,11 @@ margin:-1px;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
#chat_submit{
|
||||
#chat_submit, #chat_help{
|
||||
margin-top: 4px;
|
||||
margin-left: 4%;
|
||||
margin-left: 2%;
|
||||
width: 12.45%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.indicator {
|
||||
|
||||
@@ -488,6 +488,14 @@ function addDynamicListeners() {
|
||||
//document.getElementById("chatForm").submit();
|
||||
});
|
||||
|
||||
addListener("click", "#chat_help", function(event) {
|
||||
this.preventDefault(),
|
||||
this.stopPropagation();
|
||||
document.getElementById("text-chat-input").value = "/help";
|
||||
Chat.chat(document.getElementById("chatForm").input);
|
||||
document.getElementById("chat_submit").focus();
|
||||
});
|
||||
|
||||
addListener("click", "#offline-mode", function(event){
|
||||
this.preventDefault();
|
||||
if(!Crypt.get_offline()){
|
||||
|
||||
@@ -18,8 +18,9 @@
|
||||
</li>
|
||||
<li id="chat-input" class="row">
|
||||
<form action="#" id="chatForm">
|
||||
<input id="text-chat-input" class="col s9" name="input" type="text" autocomplete="off" placeholder="Chat" maxlength="150" />
|
||||
<input id="text-chat-input" class="col s8" name="input" type="text" autocomplete="off" placeholder="Chat" maxlength="150" />
|
||||
<a href="#" id="chat_submit" class="btn col s2 white waves-effect"><i class="material-icons">send</i></a>
|
||||
<a href="#" id="chat_help" class="btn col s2 white waves-effect"><i class="material-icons">help</i></a>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user