From 11bb618c05c2e154af8d4e9c9ed0e8f05624993d Mon Sep 17 00:00:00 2001 From: gRoussac Date: Tue, 15 Jul 2014 16:33:28 +0200 Subject: [PATCH] [-] BO : Fix bug #PSCSX-2681 #PSCSX-2575 , dnd inactive --- controllers/admin/AdminCategoriesController.php | 2 +- js/admin-dnd.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/controllers/admin/AdminCategoriesController.php b/controllers/admin/AdminCategoriesController.php index ad95299d50f0a..6b028521e590e 100644 --- a/controllers/admin/AdminCategoriesController.php +++ b/controllers/admin/AdminCategoriesController.php @@ -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) { diff --git a/js/admin-dnd.js b/js/admin-dnd.js index b7c33483ae09d..56aefe250a077 100644 --- a/js/admin-dnd.js +++ b/js/admin-dnd.js @@ -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',