Commit 9b530535 authored by Tibor Katelbach's avatar Tibor Katelbach
Browse files

added finished stepValidation

parent 544ed60f
...@@ -169,6 +169,7 @@ if( $mode != "pdf" ){ ...@@ -169,6 +169,7 @@ if( $mode != "pdf" ){
var formData = $("#ajaxFormModal").serializeFormJSON(); var formData = $("#ajaxFormModal").serializeFormJSON();
var today = new Date(); var today = new Date();
today = today.getDate() + '/' + (today.getMonth()+1) + '/' + today.getFullYear(); today = today.getDate() + '/' + (today.getMonth()+1) + '/' + today.getFullYear();
ctxTpl = { ctxTpl = {
id : "<?php echo $answer['_id'] ?>", id : "<?php echo $answer['_id'] ?>",
collection : "answers", collection : "answers",
...@@ -181,6 +182,8 @@ if( $mode != "pdf" ){ ...@@ -181,6 +182,8 @@ if( $mode != "pdf" ){
user : userId user : userId
} }
}; };
if(costum.form.ids.length == $.inArray( "<?php echo $form['id'] ?>", costum.form.ids )+1 && formData.valid == "valid")
ctxTpl.value.finished = true;
mylog.log("validation save",ctxTpl); mylog.log("validation save",ctxTpl);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment