www/js/inv_equipments.js

changeset 691
9c21125f584e
parent 645
3b1510050c9b
child 692
dc3311736fb7
equal deleted inserted replaced
690:10ff024acff1 691:9c21125f584e
347 }); 347 });
348 } 348 }
349 $('#popupWindow').jqxWindow('hide'); 349 $('#popupWindow').jqxWindow('hide');
350 }); 350 });
351 $('#Cancel').jqxButton({ template: 'primary', width: '90px', theme: theme }); 351 $('#Cancel').jqxButton({ template: 'primary', width: '90px', theme: theme });
352 $('#Clone').jqxButton({ template: 'warning', width: '90px', theme: theme });
353 $('#Clone').click(function() {
354 var row = {
355 record: -1,
356 name: $('#name').val() + ' kopie',
357 boil_size: parseFloat($('#boil_size').jqxNumberInput('decimal')),
358 batch_size: parseFloat($('#batch_size').jqxNumberInput('decimal')),
359 tun_volume: parseFloat($('#tun_volume').jqxNumberInput('decimal')),
360 tun_weight: parseFloat($('#tun_weight').jqxNumberInput('decimal')),
361 tun_specific_heat: parseFloat($('#tun_specific_heat').jqxNumberInput('decimal')),
362 tun_material: $('#tun_material').val(),
363 tun_height: parseFloat($('#tun_height').jqxNumberInput('decimal')),
364 top_up_water: parseFloat($('#top_up_water').jqxNumberInput('decimal')),
365 trub_chiller_loss: parseFloat($('#trub_chiller_loss').jqxNumberInput('decimal')),
366 evap_rate: parseFloat($('#evap_rate').jqxNumberInput('decimal')),
367 boil_time: parseFloat($('#boil_time').jqxNumberInput('decimal')),
368 calc_boil_volume: $('#calc_boil_volume').val(),
369 top_up_kettle: parseFloat($('#top_up_kettle').jqxNumberInput('decimal')),
370 hop_utilization: parseFloat($('#hop_utilization').jqxNumberInput('decimal')),
371 notes: $('#notes').val(),
372 lauter_volume: parseFloat($('#lauter_volume').jqxNumberInput('decimal')),
373 lauter_height: parseFloat($('#lauter_height').jqxNumberInput('decimal')),
374 lauter_deadspace: parseFloat($('#lauter_deadspace').jqxNumberInput('decimal')),
375 kettle_volume: parseFloat($('#kettle_volume').jqxNumberInput('decimal')),
376 kettle_height: parseFloat($('#kettle_height').jqxNumberInput('decimal')),
377 mash_volume: parseFloat($('#mash_volume').jqxNumberInput('decimal')),
378 mash_max: parseFloat($('#mash_max').jqxNumberInput('decimal')),
379 efficiency: parseFloat($('#efficiency').jqxNumberInput('decimal'))
380 };
381 $('#jqxgrid').jqxGrid('addrow', null, row);
382 $('#popupWindow').jqxWindow('hide');
383 });
352 $('#Save').jqxButton({ template: 'success', width: '90px', theme: theme }); 384 $('#Save').jqxButton({ template: 'success', width: '90px', theme: theme });
353 // update the edited row when the user clicks the 'Save' button. 385 // update the edited row when the user clicks the 'Save' button.
354 $('#Save').click(function() { 386 $('#Save').click(function() {
355 var row, rowID = -1; 387 var row, rowID = -1;
356 if (editrow >= 0) { 388 if (editrow >= 0) {

mercurial