diff options
author | Darren Embry <dse@webonastick.com> | 2012-09-06 14:46:28 -0400 |
---|---|---|
committer | Darren Embry <dse@webonastick.com> | 2012-09-06 14:47:01 -0400 |
commit | c184fa273f8f575266addc38f838a31b763d3d1d (patch) | |
tree | d31aef2599120372ecb3fb036a12d5af2e0aff96 /usr/local/www | |
parent | 00ad21b9d71a5b5cda116a6a30293999847e39e4 (diff) | |
download | pfsense-c184fa273f8f575266addc38f838a31b763d3d1d.zip pfsense-c184fa273f8f575266addc38f838a31b763d3d1d.tar.gz |
fix imbalanced HTML tags
hopefully continues to fix #2625 but no guarantees.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 978745b..243232b 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -1097,15 +1097,24 @@ function rule_popup($src,$srcport,$dst,$dstport){ $width="350"; break; } - $span_begin = "<span style=\"cursor: help;\" onmouseover=\"var response_html=domTT_activate(this, event, 'id','ttalias_{$alias_id}','content','{$loading_image}', 'trail', true, 'delay', 300, 'fade', 'both', 'fadeMax', 93, 'styleClass', 'niceTitle','type','velcro','width',{$width});alias_popup('{$alias_id}','{$g["theme"]}','".gettext('loading...')."');\" onmouseout=\"this.style.color = ''; domTT_mouseout(this, event);\"><U>"; - if ($alias_name['name'] == $src) - $descriptions['src']= $span_begin; - if ($alias_name['name'] == $srcport) + $span_begin = "<span style=\"cursor: help;\" onmouseover=\"var response_html=domTT_activate(this, event, 'id','ttalias_{$alias_id}','content','{$loading_image}', 'trail', true, 'delay', 300, 'fade', 'both', 'fadeMax', 93, 'styleClass', 'niceTitle','type','velcro','width',{$width});alias_popup('{$alias_id}','{$g["theme"]}','".gettext('loading...')."');\" onmouseout=\"this.style.color = ''; domTT_mouseout(this, event);\"><u>"; + $span_end = "</u></span>"; + if ($alias_name['name'] == $src) { + $descriptions['src'] = $span_begin; + $descriptions['src_end'] = $span_end; + } + if ($alias_name['name'] == $srcport) { $descriptions['srcport'] = $span_begin; - if ($alias_name['name'] == $dst ) + $descriptions['srcport_end'] = $span_end; + } + if ($alias_name['name'] == $dst ) { $descriptions['dst'] = $span_begin; - if ($alias_name['name'] == $dstport) - $descriptions['dstport'] = $span_begin; + $descriptions['dst_end'] = $span_end; + } + if ($alias_name['name'] == $dstport) { + $descriptions['dstport'] = $span_begin; + $descriptions['dstport_end'] = $span_end; + } } return $descriptions; } |