Page Index Toggle Pages: 1
Topic Tools
Javascript Error on Board Index (Read 2,737 times)
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Javascript Error on Board Index
Reply #1 - Jul 28th, 2010 at 7:00am
Post Tools
Confirmed for 'Sent Box' and Store Box.

New
Sources/BoardIndex.pl
in CVS/SVN.

Changelog:
- Fix Javascript Error for Send Box  and Store Box

Remove 2x the Highlighted ' in BoardIndex.pl.

Line 515
Code (Perl)
Select All
	         if (confirm('$boardindex_imtxt{'11'} ${$username}{'PMmoutnum'} $boardindex_imtxt{'12'} $boardindex_txt{'320'}, $boardindex_imtxt{'16'} $numobox $boardindex_imtxt{'18'}. $boardindex_imtxt{'19'}' $imsweredeleted $boardindex_imtxt{'20'} $boardindex_txt{'320'} $boardindex_imtxt{'21'}')) viewIMOUT(); 



Line 525
Code (Perl)
Select All
	         if (confirm('$boardindex_imtxt{'11'} ${$username}{'PMstorenum'} $boardindex_imtxt{'12'} $boardindex_imtxt{'46'}, $boardindex_imtxt{'16'} $numstore $boardindex_imtxt{'18'}. $boardindex_imtxt{'19'}' $imsweredeleted $boardindex_imtxt{'20'} $boardindex_imtxt{'46'} $boardindex_imtxt{'21'}')) viewIMSTORE(); 

« Last Edit: Jul 28th, 2010 at 7:17am by Jet Li »  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
Corey Chapman
YaBB Administrator
*****
Offline



Posts: 10,015
Location: Rock Hill, South Carolina

None
Javascript Error on Board Index
Jul 28th, 2010 at 12:59am
Post Tools
When I have more than the allowed # of messages in my PM sent box, a Javascript normally appears.  Since 2.5 AE it now produces a Javascript error.  This is due to the word outbox' where the single quote is not escaped and closes the javascript call instead.

Code (Javascript)
Select All
<script language="JavaScript1.2" type="text/javascript">
<!--
	if (confirm('You had 51 messages in your PM Sent Box, which exceeded the storage limit of 50 messages. The oldest' 1 messages were automatically deleted.\n\nDo you want to view your PM Sent Box now?')) viewIMOUT();
// -->
</script> 

  

Back to top
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top