issue 2628 multi poll delete bug fix

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11921 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2012-10-26 08:21:12 +00:00
parent 95f992d838
commit eace820aa1
2 changed files with 5 additions and 5 deletions

View file

@ -71,7 +71,7 @@ function checkSearch(form)
jQuery(function ($){ jQuery(function ($){
$('#pollList').submit(function(e){ $('#pollList').submit(function(e){
var cnt = $('#pollList input[name=cart]:checked').length; var cnt = $('#pollList input[name=cart[]]:checked').length;
if(cnt == 0) if(cnt == 0)
{ {
e.stopPropagation(); e.stopPropagation();

View file

@ -11,7 +11,7 @@ xe.lang.confirm_poll_delete = '{$lang->confirm_poll_delete}';
<div class="x_page-header"> <div class="x_page-header">
<h1>{$lang->poll}</h1> <h1>{$lang->poll}</h1>
</div> </div>
<form action="./" method="post" id="pollList"> <form ruleset="deleteChecked" action="./" method="post" id="pollList">
<input type="hidden" name="act" value="procPollAdminDeleteChecked" /> <input type="hidden" name="act" value="procPollAdminDeleteChecked" />
<input type="hidden" name="page" value="{$page}" /> <input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module" value="poll" /> <input type="hidden" name="module" value="poll" />
@ -30,7 +30,7 @@ xe.lang.confirm_poll_delete = '{$lang->confirm_poll_delete}';
<th scope="col" class="nowr">{$lang->author}</th> <th scope="col" class="nowr">{$lang->author}</th>
<th scope="col" class="nowr">{$lang->regdate}</th> <th scope="col" class="nowr">{$lang->regdate}</th>
<th scope="col" class="nowr">{$lang->poll_stop_date}</th> <th scope="col" class="nowr">{$lang->poll_stop_date}</th>
<th scope="col"><input type="checkbox" data-name="cart" title="Check All" /></th> <th scope="col"><input type="checkbox" data-name="cart[]" title="Check All" /></th>
</tr> </tr>
</thead> </thead>
<tfoot> <tfoot>
@ -41,7 +41,7 @@ xe.lang.confirm_poll_delete = '{$lang->confirm_poll_delete}';
<th scope="col" class="nowr">{$lang->author}</th> <th scope="col" class="nowr">{$lang->author}</th>
<th scope="col" class="nowr">{$lang->regdate}</th> <th scope="col" class="nowr">{$lang->regdate}</th>
<th scope="col" class="nowr">{$lang->poll_stop_date}</th> <th scope="col" class="nowr">{$lang->poll_stop_date}</th>
<th scope="col"><input type="checkbox" data-name="cart" title="Check All" /></th> <th scope="col"><input type="checkbox" data-name="cart[]" title="Check All" /></th>
</tr> </tr>
</tfoot> </tfoot>
<tbody> <tbody>
@ -53,7 +53,7 @@ xe.lang.confirm_poll_delete = '{$lang->confirm_poll_delete}';
<td class="nowr">{zdate($val->poll_regdate,"Y-m-d H:i")}</td> <td class="nowr">{zdate($val->poll_regdate,"Y-m-d H:i")}</td>
<td class="nowr">{zdate($val->poll_stop_date,"Y-m-d")}</td> <td class="nowr">{zdate($val->poll_stop_date,"Y-m-d")}</td>
<td> <td>
<input type="checkbox" name="cart" value="{$val->poll_index_srl}" /> <input type="checkbox" name="cart[]" value="{$val->poll_index_srl}" />
</td> </td>
</tr> </tr>
</tbody> </tbody>