diff options
author | N0YB <Al_Stu@Frontier.com> | 2015-06-15 12:25:37 -0700 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-06-25 08:32:40 -0300 |
commit | 763afdaf7b4b673ed68b62a976f459f4969e665b (patch) | |
tree | 8db918cfcd852b8b4e2d3dbdf37c194b11ffd918 /usr/local | |
parent | 0f383d78a0471a2550b87792c317956f97421087 (diff) | |
download | pfsense-763afdaf7b4b673ed68b62a976f459f4969e665b.zip pfsense-763afdaf7b4b673ed68b62a976f459f4969e665b.tar.gz |
Add semicolon
Fix delete Java Script to match valid HTML ID
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/diag_tables.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/diag_tables.php b/usr/local/www/diag_tables.php index a10ea63..9cfc73f 100644 --- a/usr/local/www/diag_tables.php +++ b/usr/local/www/diag_tables.php @@ -110,7 +110,8 @@ include("head.inc"); if (200 == response.status) { // Escape all dots to not confuse jQuery selectors name = response.responseText.replace(/\./g,'\\.'); - name = name.replace(/\//g,'\\/'); + name = name.replace(/\//g,'\\-'); + name = "entry_" + name; jQuery('#' + name).fadeOut(1000); } } @@ -138,7 +139,7 @@ include("head.inc"); </tr> <?php $count = 0; foreach($entries as $entryA): ?> <?php $entry = trim($entryA); ?> - <tr id="entry_<?=str_replace("/", "-", $entry)?>"> + <tr id="entry_<?=str_replace("/", "-", $entry);?>"> <td> <?php echo $entry; ?> </td> |