edit dataCollect.js

edit dataCollect.js
This commit is contained in:
daisyonly 2014-08-29 11:35:44 +08:00
parent 28965ed380
commit f3923f64fd
2 changed files with 1 additions and 2 deletions

View File

@ -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++){

View File

@ -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() == "") {