From 08d789d9634e9d9376e7d6db9512e7005d11b61d Mon Sep 17 00:00:00 2001 From: Lyla Fischer Date: Sat, 28 Apr 2012 07:01:16 -0400 Subject: [PATCH] removed error logs from the javascript and added curly braces --- templates/problem.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/problem.js b/templates/problem.js index 736875efc0..4c4aa00d7a 100644 --- a/templates/problem.js +++ b/templates/problem.js @@ -10,18 +10,16 @@ function ${ id }_load() { $.each($("[id^=input_${ id }_]"), function(index,value){ if (value.type==="radio" || value.type==="checkbox"){ if (value.checked) { - console.log("adding a radio or checkbox value"); - if (typeof submit_data[value.name] == 'undefined') + if (typeof submit_data[value.name] == 'undefined'){ submit_data[value.name]=[] + } submit_data[value.name]+=value.value; } } else{ - console.log("adding a standard value"); submit_data[value.id]=value.value; } }); - console.log(submit_data) postJSON('/modx/problem/${ id }/problem_check', submit_data, function(json) {