Saving schematics works
This commit is contained in:
@@ -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;});
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
<span>
|
||||
<input type="hidden" class="schematic" height="${height}" width="${width}" name="input_${id}" id="input_${id}" value="${value}" />
|
||||
<input type="hidden" class="schematic" height="${height}" width="${width}" name="input_${id}" id="input_${id}" value="" />
|
||||
<div id="hidden_${id}" style="display:none">
|
||||
${value}
|
||||
</div>
|
||||
<script>
|
||||
$("#input_${id}").attr("value",$("#hidden_${id}").text())
|
||||
</script>
|
||||
<span id="answer_${id}"></span>
|
||||
% if state == 'unsubmitted':
|
||||
<span class="ui-icon ui-icon-bullet" style="display:inline-block;" id="status_${id}"></span>
|
||||
|
||||
Reference in New Issue
Block a user