From f3923f64fd6b0c7132998a0958e55b338b500a3d Mon Sep 17 00:00:00 2001 From: daisyonly <1241945585@qq.com> Date: Fri, 29 Aug 2014 11:35:44 +0800 Subject: [PATCH] edit dataCollect.js edit dataCollect.js --- .../src/main/webapp/script/scriptManager/contentVerification.js | 1 - Bench4Q-Web/src/main/webapp/script/scriptManager/dataCollect.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Bench4Q-Web/src/main/webapp/script/scriptManager/contentVerification.js b/Bench4Q-Web/src/main/webapp/script/scriptManager/contentVerification.js index 93c7d34e..c5afa008 100644 --- a/Bench4Q-Web/src/main/webapp/script/scriptManager/contentVerification.js +++ b/Bench4Q-Web/src/main/webapp/script/scriptManager/contentVerification.js @@ -22,7 +22,6 @@ function checkPluginsInput(plugins) { function checkPagesInput(pages) { for (var i = 0;i < pages.length; i++){ - console.log(pages[i].batches.length); for (var j = 0; j < pages[i].batches.length; j++){ for (var k = 0; k < pages[i].batches[j].behaviors.length; k++){ for (var q = 0; q < pages[i].batches[j].behaviors[k].parameters.length; q++){ diff --git a/Bench4Q-Web/src/main/webapp/script/scriptManager/dataCollect.js b/Bench4Q-Web/src/main/webapp/script/scriptManager/dataCollect.js index ae460008..0712eb84 100644 --- a/Bench4Q-Web/src/main/webapp/script/scriptManager/dataCollect.js +++ b/Bench4Q-Web/src/main/webapp/script/scriptManager/dataCollect.js @@ -97,7 +97,7 @@ DataCollector.prototype.tableData = function(editor) { for ( var j = 0; j < tdArray.length; j++) { var tmpRequired = $(tdArray[j]).children("input").attr("required"); var tmpValue = $(tdArray[j]).children("input").val(); - if (tmpRequired == "Required" && tmpValue == "") + if (tmpRequired == "required" && tmpValue == "") check = "false"; if ($(tdArray[j]).children("input").val() == undefined || $(tdArray[j]).children("input").val() == "") {