Petar Mitchev
unread,May 12, 2010, 11:07:39 AM5/12/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sfJqueryReloadedPlugin
Hi guys,
I'm trying to implement jq_sortable_element instead of the old
sortable_element, but I can't make it to work. I'm not really using
jQuery often, so excuse me for my incompetence.
Here is my code:
<tbody id="order">
<?php foreach ($pager->getResults() as $i => $Banner): $odd =
fmod(++$i, 2) ? 'odd' : 'even' ?>
<tr class="sf_admin_row <?php echo $odd ?> row">
<?php include_partial('banner/list_td_batch_actions',
array('Banner' => $Banner, 'helper' => $helper)) ?>
<?php include_partial('banner/list_td_tabular',
array('Banner' => $Banner)) ?>
<?php include_partial('banner/list_td_actions',
array('Banner' => $Banner, 'helper' => $helper)) ?>
</tr>
<?php endforeach; ?>
</tbody>
<div id="feedback"></div>
<?php echo jq_sortable_element('order', array(
'url' => 'banner/ajaxSort',
'update' => 'feedback',
'only' => 'rows',
'tag' => 'tr',
'loading' => "Element.show('indicator')",
'complete' => "Element.hide('indicator')",
'success' => jq_visual_effect('highlight', 'feedback'),
)) ?>
Can you tell me how to implement the method correctly?