Changeset 10000

Show
Ignore:
Timestamp:
11/21/08 07:11:54 (2 months ago)
Author:
afz
Message:

fix Poll template

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/0.8/jaws/html/gadgets/Poll/templates/Poll.html

    r9960 r10000  
    22<div class="gadget poll"> 
    33  <h2>{title}</h2> 
    4   <form action="{base_script}" method="post"> 
     4  <form action="{base_script}" name="poll_form_{pid}" method="post"> 
    55  <input type="hidden" name="gadget" value="Poll" /> 
    66  <input type="hidden" name="action" value="Vote" /> 
     
    1515  </div> 
    1616  <div class="actions">{result_link} {btn_vote}</div> 
     17  <!-- BEGIN cookie --> 
     18  <script type="text/javascript"> 
     19    if (-1 != document.cookie.indexOf('poll_' + {pid})) { 
     20        document.poll_form_{pid}.onsubmit = function() { 
     21            return false; 
     22        } 
     23    } 
     24  </script> 
     25  <!-- END cookie --> 
    1726  </form> 
    1827</div>