* Rename sort to updateOrder.

This commit is contained in:
wangyidong
2023-05-16 09:42:57 +08:00
parent 426e638176
commit f924429b35
4 changed files with 7 additions and 9 deletions
+2 -2
View File
@@ -37,7 +37,7 @@
<?php else:?>
<div class="main-col">
<form class="main-table table-product" data-ride="table" id="productListForm" method="post" action='<?php echo $this->createLink('product', 'batchEdit', "programID=$programID");?>'>
<?php $canOrder = common::hasPriv('product', 'sort');?>
<?php $canOrder = common::hasPriv('product', 'updateOrder');?>
<table id="productList" class="table has-sort-head table-bordered table-fixed">
<?php $vars = "programID=$programID&browseType=$browseType&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}";?>
<thead>
@@ -141,7 +141,7 @@ $(function()
{
var list = '';
for(i = 0; i < data.list.length; i++) list += $(data.list[i].item).attr('data-id') + ',';
$.post(createLink('product', 'sort'), {'products' : list, 'orderBy' : orderBy});
$.post(createLink('product', 'updateOrder'), {'products' : list, 'orderBy' : orderBy});
});
});
</script>