fix indenting
This commit is contained in:
29
code/chat.js
29
code/chat.js
@ -636,27 +636,24 @@ window.chat.setupTime = function() {
|
|||||||
|
|
||||||
window.chat.setupPosting = function() {
|
window.chat.setupPosting = function() {
|
||||||
$('#chatinput input').keydown(function(event) {
|
$('#chatinput input').keydown(function(event) {
|
||||||
try{
|
try {
|
||||||
|
var kc = (event.keyCode ? event.keyCode : event.which);
|
||||||
var kc = (event.keyCode ? event.keyCode : event.which);
|
if(kc === 13) { // enter
|
||||||
if(kc === 13) { // enter
|
chat.postMsg();
|
||||||
chat.postMsg();
|
event.preventDefault();
|
||||||
event.preventDefault();
|
} else if (kc === 9) { // tab
|
||||||
} else if (kc === 9) { // tab
|
event.preventDefault();
|
||||||
event.preventDefault();
|
window.chat.handleTabCompletion();
|
||||||
window.chat.handleTabCompletion();
|
}
|
||||||
|
} catch(error) {
|
||||||
|
console.log(error);
|
||||||
|
debug.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} catch(error) {
|
|
||||||
console.log(error);
|
|
||||||
debug.printStackTrace();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#chatinput').submit(function(event) {
|
$('#chatinput').submit(function(event) {
|
||||||
chat.postMsg();
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
chat.postMsg();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user