Version 3.0.5
This commit is contained in:
1 parent
19b38c7c74
commit
1d4720f3e2
3755 files changed
+508378
-664541
No files matched your search
@@ -0,0 +1,35 @@
|
||||
/************************************************/
|
||||
/* IPB3 Javascript */
|
||||
/* -------------------------------------------- */
|
||||
/* ips.chat.js - Chat javascript */
|
||||
/* (c) IPS, Inc 2008 */
|
||||
/* -------------------------------------------- */
|
||||
/* Author: Brandon Farber */
|
||||
/************************************************/
|
||||
|
||||
var _chat = window.IPBoard;
|
||||
|
||||
_chat.prototype.chat = {
|
||||
|
||||
ajaxTrigger: 60,
|
||||
|
||||
init: function()
|
||||
{
|
||||
Debug.write("Initializing ips.chat.js");
|
||||
|
||||
document.observe("dom:loaded", function(){
|
||||
ipb.chat.ping();
|
||||
new PeriodicalExecuter( ipb.chat.ping, ipb.chat.ajaxTrigger );
|
||||
});
|
||||
},
|
||||
|
||||
ping: function()
|
||||
{
|
||||
new Ajax.Request(
|
||||
ipb.vars['base_url'] + "app=chat&module=ajax§ion=update&md5check="+ipb.vars['secure_hash'],
|
||||
{ method: 'get' }
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
ipb.chat.init();
|
||||
Reference in new issue
Block a user