mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-01-04 00:25:34 +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()){
|
||||
|
||||
Reference in New Issue
Block a user