From 8233f18051d85de057b9093a345fd1e9f27f1f49 Mon Sep 17 00:00:00 2001 From: lLefevre Date: Tue, 27 Dec 2011 09:06:11 +0000 Subject: [PATCH] // display error message for upload image --- admin-dev/themes/template/products/images.tpl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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)