Diff of /branches/2.6/cgi-bin/yabb2/Sources/Poll.pm [r1426] .. [r1427] Maximize Restore

  Switch to side-by-side view

--- a/branches/2.6/cgi-bin/yabb2/Sources/Poll.pm
+++ b/branches/2.6/cgi-bin/yabb2/Sources/Poll.pm
@@ -15,7 +15,7 @@
 use CGI::Carp qw(fatalsToBrowser);
 our $VERSION = '2.6.0';
 
-$pollpmver = 'YaBB 2.6.0 $Revision: 1416 $';
+$pollpmver = 'YaBB 2.6.0 $Revision: 1427 $';
 if ($action eq 'detailedversion') { return 1; }
 
 LoadLanguage('Poll');
@@ -671,10 +671,8 @@
         $poll_notlocked = qq~
            <div style="float: right; width: 20%; text-align: right;">
             <script type="text/javascript">
-        <!--
                 document.write('<a href="$scripturl?num=$viewnum"><img src="$imagesdir/$poll_bar" alt="" /></a>');
                 document.write('<a href="$scripturl?num=$viewnum;view=pie"><img src="$imagesdir/$poll_pie" alt="" /></a>');
-        //-->
         </script>
     </div>
     ~;
@@ -693,7 +691,6 @@
                 $poll_hasvoted = qq~
         <script src="$yyhtml_root/piechart.js" type="text/javascript"></script>
         <script type="text/javascript">
-        <!--
             if (document.getElementById('piestyle').currentStyle) {
                 pie_colorstyle = document.getElementById('piestyle').currentStyle['color'];
             } else if (window.getComputedStyle) {
@@ -708,7 +705,6 @@
             pie.use_legends = $pie_legends;
             pie.color_style = pie_colorstyle;
             pie.sliceAdd();
-            //-->
         </script>~;
             }
             else {
@@ -807,7 +803,6 @@
     $pollmain =~ s/{yabb deletevote}/$deletevote/sm;
     $pollmain =~ s/{yabb displayvoters}/$displayvoters/sm;
     $pollmain .= qq~<script type="text/javascript">
-<!--
 function collapseSCpoll(pollnr) {
     if (document.getElementById("polldiv").style.display == 'none') linkpollnr = '0';
     else linkpollnr = pollnr;
@@ -831,7 +826,6 @@
     xmlHttp.open("GET",url,true);
     xmlHttp.send(null);
 }
--->
 </script>
 ~;
     return $pollmain;