[-] BO : fix #PSTEST-1186 - broken positioning of product images

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14754 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean committed 2012-04-19 08:34:07 +00:00
1 parent ce95918ff0
commit e8fc403d5a
1 file changed
+2 -7
@@ -139,17 +139,12 @@
image_up = "{"; image_up = "{";
$("#imageList").find("tr").each(function(i) { $("#imageList").find("tr").each(function(i) {
$("#td_" + $(this).attr("id")).html(i + 1); $("#td_" + $(this).attr("id")).html(i + 1);
if ($(this).attr("id") == current)
{
image_up += '"' + $(this).attr("id") + '" : ' + (i + 1) + ',';
stop = true;
}
if (!stop || (i + 1) == 2) if (!stop || (i + 1) == 2)
image_up += '"' + $(this).attr("id") + '" : ' + (i + 1) + ','; image_up += '"' + $(this).attr("id") + '" : ' + (i + 1) + ',';
}); });
image_up = image_up.slice(0, -1); image_up = image_up.slice(0, -1);
image_up += "}"; image_up += "}";
updateImagePositon(image_up); updateImagePosition(image_up);
} }
}); });
var filecheck = 1; var filecheck = 1;
@@ -289,7 +284,7 @@
}); });
//function //function
function updateImagePositon(json) function updateImagePosition(json)
{ {
doAdminAjax( doAdminAjax(
{ {