Menu

#1254 (in 2.6.0) JS Syntax error generated *_*_structure.php

2.6.0-alpha2
fixed
1
2013-06-11
2004-05-24
Anonymous
No

Both tbl_properties_structure.php and
db_details_structure.php generate code that causes
syntax errors in Internet Explorer.

In tbl_properties_structure.php is the line:
<td <?php echo $click_mouse; ?> bgcolor="<?php
echo $bgcolor; ?>" nowrap="nowrap">&nbsp;<label
onclick="(document.getElementById('checkbox_row_<?
php echo $i; ?>') ? return false : return true)"
for="checkbox_row_<?php echo $i; ?>"><?php echo
$field_name; ?></label>&nbsp;</td>

In the syntax error is the return statements in the ? :
expression and should be changed to:
<td <?php echo $click_mouse; ?> bgcolor="<?php
echo $bgcolor; ?>" nowrap="nowrap">&nbsp;<label
onclick="return (document.getElementById
('checkbox_row_<?php echo $i; ?>') ? false : true)"
for="checkbox_row_<?php echo $i; ?>"><?php echo
$field_name; ?></label>&nbsp;</td>

There is a similar error in db_details_structure.php

Regards
-A.

Discussion

  • Garvin Hicking

    Garvin Hicking - 2004-05-24

    Logged In: YES
    user_id=473563

    Thanks for reporting, this has already been fixed in CVS
    since 2004-05-10 with the exact suggested code. :-)

     
  • Garvin Hicking

    Garvin Hicking - 2004-05-24
    • priority: 5 --> 1
    • assigned_to: nobody --> garvinhicking
    • summary: Syntax error generated __structure.php --> (in 2.6.0) JS Syntax error generated __structure.php
    • status: open --> open-fixed
     
  • Alexander M. Turek

    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed