* Put the sort in the operation.

This commit is contained in:
tianshujie98
2020-12-25 16:11:17 +08:00
parent 7df92afd9b
commit 167ba07155
2 changed files with 6 additions and 9 deletions
+1
View File
@@ -4,6 +4,7 @@ $(function()
var $list = $('#productTableList');
$list.addClass('sortable').sortable(
{
reverse: orderBy === 'order_desc',
selector: 'tr',
dragCssClass: 'drag-row',
trigger: $list.find('.sort-handler').length ? '.sort-handler' : null,
+5 -9
View File
@@ -45,10 +45,7 @@
<th class="w-150px" colspan="2"><?php echo $lang->bug->common;?></th>
<th class="w-80px" rowspan="2"><?php echo $lang->product->release;?></th>
<th class="w-80px" rowspan="2"><?php echo $lang->product->plan;?></th>
<?php if($canOrder):?>
<th class='w-70px sort-default' rowspan="2"><?php common::printOrderLink('order', $orderBy, $vars, $lang->product->updateOrder);?></th>
<?php endif;?>
<th class='c-actions w-60px' rowspan="2"><?php echo $lang->actions;?></th>
<th class='c-actions w-70px' rowspan="2"><?php echo $lang->actions;?></th>
</tr>
<tr class="text-center">
<th style="border-left: 1px solid #ddd;"><?php echo $lang->story->activate;?></th>
@@ -89,7 +86,6 @@
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<?php endif;?>
<?php foreach($program->products as $product):?>
@@ -127,11 +123,11 @@
<td><?php echo $product->closedBugs;?></td>
<td><?php echo $product->releases;?></td>
<td><?php echo $product->plans;?></td>
<?php if($canOrder):?>
<td class='c-actions sort-handler'><i class="icon icon-move"></i></td>
<?php endif;?>
<td class='c-actions'>
<td class='c-actions sort-handler'>
<?php common::printIcon('product', 'edit', "product=$product->id", $product, 'list', 'edit');?>
<?php if($canOrder):?>
<i class="icon icon-move"></i>
<?php endif;?>
</td>
</tr>
<?php endforeach;?>