From 1ed97f0940f2c5943932e624cf1fc6ce5b65215f Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 17 Apr 2017 20:38:08 +0800 Subject: [PATCH] notification for gallery upload --- app/views/admin/galleries/import.html.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/admin/galleries/import.html.erb b/app/views/admin/galleries/import.html.erb index 4c76fd6..59c82e3 100644 --- a/app/views/admin/galleries/import.html.erb +++ b/app/views/admin/galleries/import.html.erb @@ -30,4 +30,7 @@ ext = t[t.length - 1]; return (ext == "xls" || ext == "xlsx") } + <% if params[:error] == "1" %> + alert("More than 200 rows present."); + <% end %> \ No newline at end of file