Commit 722a71e5 authored by Jos Schellevis's avatar Jos Schellevis

extra validation on form processing

parent 6878d936
......@@ -8,6 +8,10 @@ function getFormData(parent) {
data = {};
$( "#"+parent+" input,#"+parent+" select" ).each(function( index ) {
if ($(this).attr('id') == undefined) {
// we need an id.
return;
}
node = data ;
keyparts = $(this).attr('id').split('.');
for (var i in keyparts) {
......@@ -59,6 +63,10 @@ function getFormData(parent) {
*/
function setFormData(parent,data) {
$( "#"+parent+" input,#"+parent+" select" ).each(function( index ) {
if ($(this).attr('id') == undefined) {
// we need an id.
return;
}
node = data ;
keyparts = $(this).attr('id').split('.');
for (var i in keyparts) {
......
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