From e7890023684230498f0b89ac85a86ec92dba7003 Mon Sep 17 00:00:00 2001 From: Jacky Date: Tue, 5 May 2015 16:38:25 -0400 Subject: [PATCH] fix issue #540 to skip the empty URL when submit the import form --- .../scripts/index/default-importing-controller/controller.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main/webapp/modules/core/scripts/index/default-importing-controller/controller.js b/main/webapp/modules/core/scripts/index/default-importing-controller/controller.js index 0f671a4a7..eafbeae23 100644 --- a/main/webapp/modules/core/scripts/index/default-importing-controller/controller.js +++ b/main/webapp/modules/core/scripts/index/default-importing-controller/controller.js @@ -73,6 +73,11 @@ Refine.DefaultImportingController.prototype._startOver = function() { Refine.DefaultImportingController.prototype.startImportJob = function(form, progressMessage, callback) { var self = this; + + $(form).find('input:text').filter(function() { + return this.value === ""; + }).attr("disabled", "disabled"); + $.post( "command/core/create-importing-job", null,