www/js/inv_fermentables.js

changeset 376
1de1623e1760
parent 324
d49da6d0b451
child 395
463d64cce768
equal deleted inserted replaced
375:7f5455806f20 376:1de1623e1760
154 $("#origin").jqxInput({ theme: theme, width: 250, height: 23 }); 154 $("#origin").jqxInput({ theme: theme, width: 250, height: 23 });
155 $("#supplier").jqxInput({ theme: theme, width: 250, height: 23 }); 155 $("#supplier").jqxInput({ theme: theme, width: 250, height: 23 });
156 $("#notes").jqxInput({ theme: theme, width: 640, height: 100 }); 156 $("#notes").jqxInput({ theme: theme, width: 640, height: 100 });
157 $("#coarse_fine_diff").jqxNumberInput( Spin1dec ); 157 $("#coarse_fine_diff").jqxNumberInput( Spin1dec );
158 $("#moisture").jqxNumberInput( Spin1dec ); 158 $("#moisture").jqxNumberInput( Spin1dec );
159 $("#diastatic_power").jqxNumberInput( Spin1dec ); 159 $("#diastatic_power").jqxNumberInput( PosInt );
160 $("#protein").jqxNumberInput( Spin1dec ); 160 $("#protein").jqxNumberInput( Spin1dec );
161 $("#dissolved_protein").jqxNumberInput( Spin1dec ); 161 $("#dissolved_protein").jqxNumberInput( Spin1dec );
162 $("#max_in_batch").jqxNumberInput( Perc1dec ); 162 $("#max_in_batch").jqxNumberInput( Perc1dec );
163 $("#recommend_mash").jqxCheckBox({ theme: theme, width: 120, height: 23 }); 163 $("#recommend_mash").jqxCheckBox({ theme: theme, width: 120, height: 23 });
164 $("#added").jqxDropDownList({ 164 $("#added").jqxDropDownList({
287 $("#origin").val(dataRecord.origin); 287 $("#origin").val(dataRecord.origin);
288 $("#supplier").val(dataRecord.supplier); 288 $("#supplier").val(dataRecord.supplier);
289 $("#notes").val(dataRecord.notes); 289 $("#notes").val(dataRecord.notes);
290 $("#coarse_fine_diff").val(dataRecord.coarse_fine_diff); 290 $("#coarse_fine_diff").val(dataRecord.coarse_fine_diff);
291 $("#moisture").val(dataRecord.moisture); 291 $("#moisture").val(dataRecord.moisture);
292 $("#diastatic_power").val(dataRecord.diastatic_power); 292 $("#diastatic_power").val(lintner_to_kolbach(dataRecord.diastatic_power));
293 $("#protein").val(dataRecord.protein); 293 $("#protein").val(dataRecord.protein);
294 $("#dissolved_protein").val(dataRecord.dissolved_protein); 294 $("#dissolved_protein").val(dataRecord.dissolved_protein);
295 $("#max_in_batch").val(dataRecord.max_in_batch); 295 $("#max_in_batch").val(dataRecord.max_in_batch);
296 $("#recommend_mash").val(dataRecord.recommend_mash); 296 $("#recommend_mash").val(dataRecord.recommend_mash);
297 $("#added").val(dataRecord.added); 297 $("#added").val(dataRecord.added);
364 origin: $("#origin").val(), 364 origin: $("#origin").val(),
365 supplier: $("#supplier").val(), 365 supplier: $("#supplier").val(),
366 notes: $("#notes").val(), 366 notes: $("#notes").val(),
367 coarse_fine_diff: parseFloat($("#coarse_fine_diff").jqxNumberInput('decimal')), 367 coarse_fine_diff: parseFloat($("#coarse_fine_diff").jqxNumberInput('decimal')),
368 moisture: parseFloat($("#moisture").jqxNumberInput('decimal')), 368 moisture: parseFloat($("#moisture").jqxNumberInput('decimal')),
369 diastatic_power: parseFloat($("#diastatic_power").jqxNumberInput('decimal')), 369 diastatic_power: kolbach_to_lintner(parseFloat($("#diastatic_power").jqxNumberInput('decimal'))),
370 protein: parseFloat($("#protein").jqxNumberInput('decimal')), 370 protein: parseFloat($("#protein").jqxNumberInput('decimal')),
371 dissolved_protein: parseFloat($("#dissolved_protein").jqxNumberInput('decimal')), 371 dissolved_protein: parseFloat($("#dissolved_protein").jqxNumberInput('decimal')),
372 max_in_batch: parseFloat($("#max_in_batch").jqxNumberInput('decimal')), 372 max_in_batch: parseFloat($("#max_in_batch").jqxNumberInput('decimal')),
373 recommend_mash: $("#recommend_mash").val(), 373 recommend_mash: $("#recommend_mash").val(),
374 added: $("#added").val(), 374 added: $("#added").val(),

mercurial