www/js/profile_setup.js

changeset 270
cf4b4b63eb36
parent 218
38499e3859fa
child 289
4082c41f45e9
equal deleted inserted replaced
269:25696a91b395 270:cf4b4b63eb36
80 $("#factor_plug").val(dataRecord.factor_plug); 80 $("#factor_plug").val(dataRecord.factor_plug);
81 $("#color_method").val(dataRecord.color_method); 81 $("#color_method").val(dataRecord.color_method);
82 $("#ibu_method").val(dataRecord.ibu_method); 82 $("#ibu_method").val(dataRecord.ibu_method);
83 $("#brix_correction").val(dataRecord.brix_correction); 83 $("#brix_correction").val(dataRecord.brix_correction);
84 $("#grain_absorbtion").val(dataRecord.grain_absorbtion); 84 $("#grain_absorbtion").val(dataRecord.grain_absorbtion);
85 $("#default_water").val(dataRecord.default_water);
86 }, 85 },
87 loadError: function (jqXHR, status, error) { 86 loadError: function (jqXHR, status, error) {
88 }, 87 },
89 }); 88 });
90 dataAdapter.dataBind(); 89 dataAdapter.dataBind();
91 90
92 // Editers 91 // Editers
93 $("#brewery_name").jqxInput({ theme: theme, width: 640, height: 23 }); 92 $("#brewery_name").jqxInput({ theme: theme, width: 640, height: 23 });
94 $("#factor_fwh").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 110, height: 23, min: -50, max: 50, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' }); 93 $("#factor_fwh").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: -50, max: 50, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' });
95 $("#factor_mashhop").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 110, height: 23, min: -50, max: 50, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' }); 94 $("#factor_mashhop").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: -50, max: 50, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' });
96 $("#factor_pellet").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 110, height: 23, min: 0, max: 20, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' }); 95 $("#factor_pellet").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: 0, max: 20, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' });
97 $("#factor_plug").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 110, height: 23, min: 0, max: 20, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' }); 96 $("#factor_plug").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: 0, max: 20, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' });
98 $("#brix_correction").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 110, height: 23, min: 1.00, max: 1.05, decimalDigits: 2, spinButtons: true, spinButtonsStep: 0.01 }); 97 $("#brix_correction").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: 1.00, max: 1.05, decimalDigits: 2, spinButtons: true });
99 $("#grain_absorbtion").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 110, height: 23, min: 0.5, max: 1.1, decimalDigits: 2, spinButtons: true, spinButtonsStep: 0.01 }); 98 $("#grain_absorbtion").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: 0.5, max: 1.1, decimalDigits: 2, spinButtons: true });
100 $("#color_method").jqxDropDownList({ 99 $("#color_method").jqxDropDownList({
101 theme: theme, 100 theme: theme,
102 source: ColorMethodAdapter, 101 source: ColorMethodAdapter,
103 valueMember: 'id', 102 valueMember: 'id',
104 displayMember: 'nl', 103 displayMember: 'nl',

mercurial