From cac23e3c52ef1774a36163db5aa81b4a3005013b Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 17 Sep 2014 19:57:47 +0800 Subject: [PATCH] fixed a bug in js --- app/views/admin/import/index.html.erb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/admin/import/index.html.erb b/app/views/admin/import/index.html.erb index dc88900..8b13311 100644 --- a/app/views/admin/import/index.html.erb +++ b/app/views/admin/import/index.html.erb @@ -299,7 +299,7 @@ }).done(function(data){ $("#import-progress-text").html("Importing Images...
"); gallery_data = data.images; - f(gallery_data.length > 0){ + if(gallery_data.length > 0){ importImagesForAlbums(0); }else{ $("#import-progress .bar").css('width','100%'); @@ -408,7 +408,6 @@ } var importplugin = function(id,p,number,name){ - console.log(name); var plugin = plugins[p]; $("#import-progress-text #plugin_name").html(plugin.charAt(0).toUpperCase() + plugin.slice(1)); $.ajax({