Changed to not use inline JavaScript

This commit is contained in:
Grant Woodford 2013-12-15 12:02:43 +02:00
parent d1367484e3
commit 17666eaef7
2 changed files with 13 additions and 18 deletions

View file

@ -54,11 +54,18 @@ var chat = (function()
},
hide: function ()
{
$("#chatcounter").text("0");
$("#chaticon").show();
$("#chatbox").hide();
$.gritter.removeAll();
$("#gritter-notice-wrapper").show();
// decide on hide logic based on chat window being maximized or not
if ($('#options-stickychat').prop('checked')) {
chat.stickToScreen();
$('#options-stickychat').prop('checked', false);
}
else {
$("#chatcounter").text("0");
$("#chaticon").show();
$("#chatbox").hide();
$.gritter.removeAll();
$("#gritter-notice-wrapper").show();
}
},
scrollDown: function()
{