Changeset 9942

Show
Ignore:
Timestamp:
11/15/08 06:41:05 (2 months ago)
Author:
afz
Message:

fix issue in poll + checking cookie

Files:

Legend:

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

    r9913 r9942  
    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" /> 
     
    1818  <script type="text/javascript"> 
    1919    if (-1 != document.cookie.indexOf('poll_' + {pid})) { 
    20         this.onsubmit = function() { 
     20        document.poll_form_{pid}.onsubmit = function() { 
    2121            return false; 
    2222        }