[-] BO : Fix #PSTEST-1220 : now position update for attribute value is good && fix JavaScript error in admin-dnd.js

This commit is contained in:
lLefevre
2012-04-24 12:59:17 +00:00
parent 91968d45db
commit 744df9b3b2
3 changed files with 15 additions and 8 deletions
+2 -2
View File
@@ -148,9 +148,9 @@ function initTableDnD(table)
$(this).attr('id', $(this).attr('id').replace(reg, '_' + i));
// Update link position
// Up links
$(this).children('td.dragHandle a:odd').attr('href', $(this).children('td.dragHandle a:odd').attr('href').replace(up_reg, 'position='+ (i - 1) +'&'));
$(this).find('td.dragHandle a:odd').attr('href', $(this).find('td.dragHandle a:odd').attr('href').replace(up_reg, 'position='+ (i - 1) +'&'));
// Down links
$(this).children('td.dragHandle a:even').attr('href', $(this).children('td.dragHandle a:even').attr('href').replace(up_reg, 'position='+ (i + 1) +'&'));
$(this).find('td.dragHandle a:even').attr('href', $(this).find('td.dragHandle a:even').attr('href').replace(up_reg, 'position='+ (i + 1) +'&'));
});
}