[BO] Fix IE bug for adding Images
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11761 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -118,6 +118,7 @@
|
|||||||
var upbutton = '{l s='Upload a file'}';
|
var upbutton = '{l s='Upload a file'}';
|
||||||
var token = '{$token}';
|
var token = '{$token}';
|
||||||
var come_from = '{$table}';
|
var come_from = '{$table}';
|
||||||
|
var success_add = '{l s='image has been successfully added'}';
|
||||||
var id_tmp = 0;
|
var id_tmp = 0;
|
||||||
{literal}
|
{literal}
|
||||||
//Ready Function
|
//Ready Function
|
||||||
@@ -173,7 +174,7 @@
|
|||||||
token : "{/literal}{$token}{literal}",
|
token : "{/literal}{$token}{literal}",
|
||||||
tab : "AdminProducts",
|
tab : "AdminProducts",
|
||||||
action : 'addImage',
|
action : 'addImage',
|
||||||
ajax: 1,
|
ajax: 1
|
||||||
},
|
},
|
||||||
onComplete: function(id, fileName, responseJSON)
|
onComplete: function(id, fileName, responseJSON)
|
||||||
{
|
{
|
||||||
@@ -204,6 +205,7 @@
|
|||||||
$("#countImage").html(parseInt($("#countImage").html()) + 1);
|
$("#countImage").html(parseInt($("#countImage").html()) + 1);
|
||||||
$("#img" + id).remove();
|
$("#img" + id).remove();
|
||||||
$("#imageTable").tableDnDUpdate();
|
$("#imageTable").tableDnDUpdate();
|
||||||
|
showSuccessMessage(responseJSON.name + " " + success_add);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user