From: Lo?c C. <lo...@us...> - 2001-04-17 19:46:34
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs In directory usw-pr-cvs1:/tmp/cvs-serv8428/chat/lib/index_libs Modified Files: misc.lib.js connect_state.lib.js Log Message: Some better objects testings Index: misc.lib.js =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/misc.lib.js,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** misc.lib.js 2001/04/14 15:13:40 1.6 --- misc.lib.js 2001/04/17 19:46:31 1.7 *************** *** 88,92 **** jsInputForm.elements['message'].value = '/' + cmdName + infos; jsInputForm.elements['sent'].value = '1'; ! if (typeof(document.all) != 'undefined') // Browser is IE jsInputForm.elements['submitType'].disabled = true; jsInputForm.submit(); --- 88,92 ---- jsInputForm.elements['message'].value = '/' + cmdName + infos; jsInputForm.elements['sent'].value = '1'; ! if (typeof(jsInputForm.elements['submitType'].disabled) != 'undefined') jsInputForm.elements['submitType'].disabled = true; jsInputForm.submit(); *************** *** 217,221 **** { jsInputForm.elements['sent'].value = 1; ! if (typeof(document.all) == 'undefined') // Browser is IE jsInputForm.elements['submitType'].disabled = true; return true; --- 217,221 ---- { jsInputForm.elements['sent'].value = 1; ! if (jsInputForm.elements['submitType'].disabled) jsInputForm.elements['submitType'].disabled = true; return true; Index: connect_state.lib.js =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/connect_state.lib.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** connect_state.lib.js 2001/04/13 21:10:15 1.2 --- connect_state.lib.js 2001/04/17 19:46:31 1.3 *************** *** 126,130 **** { elements['sent'].value = '0'; ! if (document.all) elements['submitType'].disabled = false; } --- 126,130 ---- { elements['sent'].value = '0'; ! if (typeof(elements['submitType'].disabled) != 'undefined') elements['submitType'].disabled = false; } |