www/js/inv_fermentables.js

changeset 245
3649c3d31d15
parent 202
64a9c935a66b
child 269
25696a91b395
equal deleted inserted replaced
244:3755db604432 245:3649c3d31d15
146 displayMember: 'nl', 146 displayMember: 'nl',
147 width: 180, 147 width: 180,
148 height: 23, 148 height: 23,
149 autoDropDownHeight: true 149 autoDropDownHeight: true
150 }); 150 });
151 $("#yield").jqxNumberInput( Spin1dec1 ); 151 $("#yield").jqxNumberInput( Spin1dec );
152 $("#color").jqxNumberInput( Spin1dec5 ); 152 $("#color").jqxNumberInput( Spin1dec );
153 $("#add_after_boil").jqxCheckBox({ theme: theme, width: 120, height: 23 }); 153 $("#add_after_boil").jqxCheckBox({ theme: theme, width: 120, height: 23 });
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( Spin1dec1 ); 157 $("#coarse_fine_diff").jqxNumberInput( Spin1dec );
158 $("#moisture").jqxNumberInput( Spin1dec1 ); 158 $("#moisture").jqxNumberInput( Spin1dec );
159 $("#diastatic_power").jqxNumberInput( Spin1dec1 ); 159 $("#diastatic_power").jqxNumberInput( Spin1dec );
160 $("#protein").jqxNumberInput( Spin1dec1 ); 160 $("#protein").jqxNumberInput( Spin1dec );
161 $("#dissolved_protein").jqxNumberInput( Spin1dec1 ); 161 $("#dissolved_protein").jqxNumberInput( Spin1dec );
162 $("#max_in_batch").jqxNumberInput( Perc1dec5 ); 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({
165 theme: theme, 165 theme: theme,
166 source: AddedAdapter, 166 source: AddedAdapter,
167 valueMember: 'id', 167 valueMember: 'id',
180 displayMember: 'nl', 180 displayMember: 'nl',
181 width: 180, 181 width: 180,
182 height: 23, 182 height: 23,
183 autoDropDownHeight: true 183 autoDropDownHeight: true
184 }); 184 });
185 $("#inventory").jqxNumberInput( Spin1dec1 ); 185 $("#inventory").jqxNumberInput( Spin1dec );
186 $("#production_date").jqxDateTimeInput( Dateopts ); 186 $("#production_date").jqxDateTimeInput( Dateopts );
187 $("#cost").jqxNumberInput( Spin2dec1 ); 187 $("#cost").jqxNumberInput( Spin2dec );
188 $("#tht_date").jqxDateTimeInput( Dateopts ); 188 $("#tht_date").jqxDateTimeInput( Dateopts );
189 $("#totval").jqxNumberInput( Spin2dec1 ); 189 $("#totval").jqxNumberInput( Spin2dec );
190 $("#totval").jqxNumberInput({ width: 90, readOnly: true, spinButtons: false }); 190 $("#totval").jqxNumberInput({ width: 90, readOnly: true, spinButtons: false });
191 191
192 var dataAdapter = new $.jqx.dataAdapter(source); 192 var dataAdapter = new $.jqx.dataAdapter(source);
193 var editrow = -1; 193 var editrow = -1;
194 // initialize jqxGrid 194 // initialize jqxGrid

mercurial