diff --git a/problem.js b/problem.js index 6f90fdc8a1..e5bc56e3ab 100644 --- a/problem.js +++ b/problem.js @@ -5,6 +5,7 @@ function ${ id }_load() { update_schematics(); $('#check_${ id }').click(function() { + $("input.schematic").each(function(index,element){ element.schematic.update_value(); }); var submit_data={}; $.each($("[id^=input_${ id }_]"), function(index,value){ submit_data[value.id]=value.value; @@ -44,6 +45,7 @@ function ${ id }_load() { }); $('#save_${ id }').click(function() { + $("input.schematic").each(function(index,element){ element.schematic.update_value(); }); var submit_data={}; $.each($("[id^=input_${ id }_]"), function(index,value){ submit_data[value.id]=value.value;}); diff --git a/schematicinput.html b/schematicinput.html index 4181cc6efe..06f27db1c1 100644 --- a/schematicinput.html +++ b/schematicinput.html @@ -1,5 +1,11 @@ - + + + % if state == 'unsubmitted':