[BO] Fix IE bug for adding Images

This commit is contained in:
rMontagne committed 2011-12-26 13:20:41 +00:00
1 parent be9bf53844
commit 5d17c32f15
1 file changed
+3 -1
@@ -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
{ {