Skip to content

Commit

Permalink
[-] BO : Fix bug #PSCSX-2681 #PSCSX-2575 , dnd inactive
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Jul 15, 2014
1 parent 3a4cb79 commit 11bb618
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/admin/AdminCategoriesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ public function ajaxProcessUpdatePositions()
$id_category_to_move = (int)(Tools::getValue('id_category_to_move'));
$id_category_parent = (int)(Tools::getValue('id_category_parent'));
$way = (int)(Tools::getValue('way'));
$positions = Tools::getValue('table-category');
$positions = Tools::getValue('category');
if (is_array($positions))
foreach ($positions as $key => $value)
{
Expand Down
3 changes: 2 additions & 1 deletion js/admin-dnd.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@ function initTableDnD(table)
var ids = row.id.split('_');
var tableDrag = table;
var params = '';
table.id = table.id.replace('table-', '');
if (table.id == 'cms_block_0' || table.id == 'cms_block_1')
params = {
updatePositions: true,
configure: 'blockcms'
};
else if (table.id == 'table-category')
else if (table.id == 'category')
{
params = {
action: 'updatePositions',
Expand Down

0 comments on commit 11bb618

Please sign in to comment.