I think it should set canupdatenexttime to true in any case if the command was update.
else if (cmd == "update")
{
this.canupdatenexttime = true;
}
Moderators: OldWolf, re*s.t.a.r.s.*2
bcc wrote:What if the browser does not get a response from the server for one of the requests? Then canupdatenexttime is never set to true again?
What's a good place to stick the parameters in?
scrollDown: function(tabid, elttoscroll)
{
if (this.getTabId() != tabid)
{
if (!this.elttoscroll[tabid]) this.elttoscroll[tabid] = Array();
this.elttoscroll[tabid].push(elttoscroll);
return;
}
var content = this.getChatContentFromTabId(tabid);
//scrolls to the bottom of the screen, safer than incremental scrolling with both IE and FF
var cSH = content.scrollHeight;
var eSH = elttoscroll.scrollHeight;
var cST = (content.scrollHeight >= elttoscroll.scrollHeight) ? content.scrollHeight : elttoscroll.scrollHeight;
content.scrollTop = cST;
this.scrollpos[tabid] = cST;
},
Return to General Support (v1.x)
Users browsing this forum: No registered users and 9 guests