|
From: Lo?c C. <lo...@us...> - 2001-04-24 11:27:07
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat
In directory usw-pr-cvs1:/tmp/cvs-serv8153
Modified Files:
help_popup.php3
Log Message:
The js function that put smilies codes in the "message box" has been reveised in order to add space characters before and after these codes if required
Index: help_popup.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/help_popup.php3,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** help_popup.php3 2001/04/20 19:55:07 1.9
--- help_popup.php3 2001/04/24 11:27:05 1.10
***************
*** 124,128 ****
addTo = pmcTargetWin();
if (addTo && !addTo.closed)
! addTo.document.forms['inputForm'].elements['message'].value += code;
}
} // end of the 'pmcSmiley2Input()' function
--- 124,134 ----
addTo = pmcTargetWin();
if (addTo && !addTo.closed)
! {
! oldStr = addTo.document.forms['inputForm'].elements['message'].value;
! oldStrLength = oldStr.length;
! if (oldStr != '' && oldStr.substring(oldStrLength - 1, oldStrLength) != ' ')
! code = ' ' + code;
! addTo.document.forms['inputForm'].elements['message'].value += code + ' ';
! }
}
} // end of the 'pmcSmiley2Input()' function
***************
*** 247,252 ****
<?php
}
! // $jsVersion value is 'high' for dynamic rendering of the messages frame, 'low'
! // or 'medium' in other case
if ($jsVersion == 'high')
{
--- 253,258 ----
<?php
}
! // $jsVersion value is 'high' for dynamic rendering of the messages frame,
! // 'noJs', 'low' or 'medium' in other case
if ($jsVersion == 'high')
{
|