Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs
In directory usw-pr-cvs1:/tmp/cvs-serv14717/chat/lib/index_libs
Modified Files:
misc.lib.js connect_status.lib.js
Log Message:
Fixed misc js bugs
Index: misc.lib.js
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/misc.lib.js,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** misc.lib.js 2001/05/10 11:45:36 1.13
--- misc.lib.js 2001/05/14 08:50:49 1.14
***************
*** 42,47 ****
// 1. Ensures the form at the input frame exists
if (typeof(window.frames['input']) == 'undefined'
! || typeof(window.frames['input'].window.document) == 'undefined'
! || !window.frames['input'].window.document
|| typeof(window.frames['input'].window.document.forms['inputForm']) == 'undefined')
{
--- 42,46 ----
// 1. Ensures the form at the input frame exists
if (typeof(window.frames['input']) == 'undefined'
! || typeof(window.frames['input'].window.document) != 'object'
|| typeof(window.frames['input'].window.document.forms['inputForm']) == 'undefined')
{
Index: connect_status.lib.js
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/connect_status.lib.js,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** connect_status.lib.js 2001/05/10 11:47:22 1.2
--- connect_status.lib.js 2001/05/14 08:50:49 1.3
***************
*** 54,57 ****
--- 54,58 ----
+ jsQueryArgSeparator + 'lastMsgLoad=' + jsLastLoadedMsgTime
+ jsQueryArgSeparator + 'lastUsrCheck=' + jsLastCheckedUserTime;
+
// Stop current loading
if (typeof(window.stop) != 'undefined')
***************
*** 59,68 ****
jsLoaderFrame.stop();
}
! else if (typeof(document.execCommand) != 'undefined'
! && typeof(jsLoaderFrame.document) != 'undefined'
! && jsLoaderFrame.document)
{
jsLoaderFrame.document.execCommand('Stop');
}
// Do refresh the 'loader' frame
jsLoaderFrame.location.replace(jsLoaderUrl);
--- 60,71 ----
jsLoaderFrame.stop();
}
! else if (typeof(jsLoaderFrame.document) == 'object'
! && typeof(document.execCommand) == 'object')
{
jsLoaderFrame.document.execCommand('Stop');
}
+ if (jsIsConnecting)
+ clearTimeout(jsIsConnecting);
+
// Do refresh the 'loader' frame
jsLoaderFrame.location.replace(jsLoaderUrl);
|