[-] MO : fix bug #PSTEST-1178 - block CMS position drag and drop was not implemented

This commit is contained in:
tDidierjean
2012-04-19 14:34:51 +00:00
parent bc881650fa
commit 0c0b412971
3 changed files with 29 additions and 22 deletions
+7 -18
View File
@@ -50,24 +50,12 @@ function initTableDnD(table)
var tableDrag = table;
var params = '';
if (table.id == 'cms_block_0')
if (table.id == 'cms_block_0' || table.id == 'cms_block_1')
params = {
ajaxCMSBlockPositions: true,
id_cms_block: ids[1],
position: ids[2],
way: way,
token: token
updatePositions: true,
configure: 'blockcms'
};
if (table.id == 'cms_block_1')
params = {
ajaxCMSBlockPositions: true,
id_cms_block: ids[1],
position: ids[2],
way: way,
token: token
};
if (table.id == 'category')
else if (table.id == 'category')
params = {
action: 'updatePositions',
id_category_parent: ids[1],
@@ -118,8 +106,9 @@ function initTableDnD(table)
way: way
};
}
if (!params) {
// default
else
{
params = {
action : 'updatePositions',
id : ids[2],