From: Lo?c C. <lo...@us...> - 2001-05-10 11:45:40
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs In directory usw-pr-cvs1:/tmp/cvs-serv26295/chat/lib/index_libs Modified Files: start_page.lib.js misc.lib.js Log Message: Fixed some js bugs Index: start_page.lib.js =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/start_page.lib.js,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** start_page.lib.js 2001/05/08 09:18:16 1.8 --- start_page.lib.js 2001/05/10 11:45:36 1.9 *************** *** 20,24 **** // $Id$ // ! // Set of JavaScript functions used by the starting form of the chat. // --- 20,24 ---- // $Id$ // ! // Set of JavaScript functions used by the starting form of the chat. // *************** *** 257,261 **** // Ensure there is a password if the user wants to create room ! if (roomToCreate.value != '' && pswdField.value.replace(/ /g, '') == '') { --- 257,261 ---- // Ensure there is a password if the user wants to create room ! if (typeof(roomToCreate) != 'undefined' && roomToCreate.value != '' && pswdField.value.replace(/ /g, '') == '') { *************** *** 266,270 **** // Brief room name validation ! if (roomToCreate != '') { if (roomToCreate.value.replace(/ /g, '') == '') // only space chars --- 266,270 ---- // Brief room name validation ! if (typeof(roomToCreate) != 'undefined' && roomToCreate != '') { if (roomToCreate.value.replace(/ /g, '') == '') // only space chars Index: misc.lib.js =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/misc.lib.js,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** misc.lib.js 2001/04/30 22:44:58 1.12 --- misc.lib.js 2001/05/10 11:45:36 1.13 *************** *** 43,46 **** --- 43,47 ---- 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') { *************** *** 57,61 **** { if (whichElt == '' || ! typeof(window.frames['input'].window.document.forms['inputForm'].elements[whichElt]) == 'undefined') { return null; --- 58,62 ---- { if (whichElt == '' || ! typeof(jsInputForm.elements[whichElt]) == 'undefined') { return null; *************** *** 63,67 **** else { ! return window.frames['input'].window.document.forms['inputForm'].elements[whichElt]; } } // end of specific elt tests --- 64,68 ---- else { ! return jsInputForm.elements[whichElt]; } } // end of specific elt tests *************** *** 174,182 **** /** ! * Close some popups when the user exits the chat * * @access public */ ! function pmcClosePopups() { if (typeof(jsHelpPopupWin) != 'undefined' && jsHelpPopupWin && !jsHelpPopupWin.closed) --- 175,183 ---- /** ! * Close some popups when the user exits the chat and set 'jsLeaveChat' to true * * @access public */ ! function pmcQuitChat() { if (typeof(jsHelpPopupWin) != 'undefined' && jsHelpPopupWin && !jsHelpPopupWin.closed) *************** *** 189,197 **** jsIgnoredPopupWin.close() } ! if ((typeof(frames['loader']) != 'undefined' && frames['loader'] && !frames['loader'].closed) ! && jsLeaveChat) ! { ! jsLeaveChat = true; ! frames['loader'].close(); ! } ! } // end of the function 'pmcClosePopups()' \ No newline at end of file --- 190,193 ---- jsIgnoredPopupWin.close() } ! jsLeaveChat = true; ! } // end of the function 'pmcQuitChat()' \ No newline at end of file |