diff --git a/admin-dev/themes/template/products/images.tpl b/admin-dev/themes/template/products/images.tpl index fe6afc341..59a1a610f 100644 --- a/admin-dev/themes/template/products/images.tpl +++ b/admin-dev/themes/template/products/images.tpl @@ -208,11 +208,7 @@ showSuccessMessage(responseJSON.name + " " + success_add); } else - { - $("#img" + id).addClass("red"); - $("#img" + id + " .errorImg").html(responseJSON.error); - $("#img" + id + " .errorImg").show(); - } + showErrorMessage(responseJSON.error); filecheck++; }, onSubmit: function(id, filename)