From: Lo?c C. <lo...@us...> - 2001-04-04 16:20:51
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs In directory usw-pr-cvs1:/tmp/cvs-serv4635/lib/index_libs Modified Files: users.lib.js Log Message: The users frame are running for both high and low version :) Index: users.lib.js =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/users.lib.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** users.lib.js 2001/04/03 20:17:40 1.1 --- users.lib.js 2001/04/04 16:20:47 1.2 *************** *** 49,52 **** --- 49,54 ---- /** * Resets the table containing the state (opened/closed) of each room + * + * @access public */ function pmcResetRoomTable() *************** *** 60,66 **** /** ! * Checks the state (opened/closed) of a room * ! * @param room the room name to be checked */ function pmcCheckRoomState(room) --- 62,72 ---- /** ! * Checks the status (opened/closed) of a room ! * ! * @param string the name of the room to be checked ! * ! * @return integer the room status * ! * @access public */ function pmcCheckRoomState(room) *************** *** 78,81 **** --- 84,89 ---- * Cleans the table containing all rooms names from those that are no longer * in use + * + * @access public */ function pmcCleanRoom() *************** *** 94,100 **** /** * Sets the new state of a room in the rooms array * ! * @param room the name of the room which state has changed ! * @param action wether to set this new status to opened or closed */ function pmcModifyRoomState(room, action) --- 102,110 ---- /** * Sets the new state of a room in the rooms array + * + * @param string the name of the room which state has changed + * @param boolean wether to set this new status to opened or closed * ! * @access public */ function pmcModifyRoomState(room, action) *************** *** 107,112 **** /** * Gets the id of the first collapsible room * ! * @param el name of the first collapsible room */ function pmcGetIndex(el) --- 117,126 ---- /** * Gets the id of the first collapsible room + * + * @param string the name of the first collapsible room * ! * @return integer the index number corresponding to this room ! * ! * @access public */ function pmcGetIndex(el) *************** *** 128,131 **** --- 142,147 ---- /** * Positions layers under NS4+ + * + * @access public */ function pmcNsArrangeList() *************** *** 149,152 **** --- 165,170 ---- /** * Defines the state of the big +/- icon + * + * @access public */ function pmcSetBigIcon() *************** *** 176,179 **** --- 194,199 ---- * Collapses/expands rooms (depends on the state of the room before the page * reloads) each time the web page is loaded + * + * @access public */ function pmcInitList() *************** *** 254,259 **** * Collapses/expands a room when the user require this to be done and store * the new state of the room * ! * @param el name of the room to act on */ function pmcExpandRoom(el) --- 274,281 ---- * Collapses/expands a room when the user require this to be done and store * the new state of the room + * + * @param string the name of the room to act on * ! * @access public */ function pmcExpandRoom(el) *************** *** 312,315 **** --- 334,339 ---- * Collapses/expands all rooms when the user require this to be done and store * the new state of these rooms + * + * @access public */ function pmcExpandAll() *************** *** 318,324 **** return; ! var newBigSrc = (jsIsExpanded) ? jsImgBigClosed.src : jsImgBigOpened.src; ! var newSrc = (jsIsExpanded) ? jsImgClosed.src : jsImgOpened.src; ! var what = (jsIsExpanded) ? 'del' : 'add'; jsOpenedRoomsCnt = (jsIsExpanded) ? 0 : jsRoomsCnt; --- 342,348 ---- return; ! var newBigSrc = (jsIsExpanded) ? jsImgBigClosed.src : jsImgBigOpened.src; ! var newSrc = (jsIsExpanded) ? jsImgClosed.src : jsImgOpened.src; ! var what = (jsIsExpanded) ? 'del' : 'add'; jsOpenedRoomsCnt = (jsIsExpanded) ? 0 : jsRoomsCnt; |