131 } |
131 } |
132 }; |
132 }; |
133 // initialize the input fields. |
133 // initialize the input fields. |
134 $("#name").jqxInput({ theme: theme, width: 640, height: 23 }); |
134 $("#name").jqxInput({ theme: theme, width: 640, height: 23 }); |
135 $("#notes").jqxInput({ theme: theme, width: 800, height: 100 }); |
135 $("#notes").jqxInput({ theme: theme, width: 800, height: 100 }); |
136 $("#calcium").jqxNumberInput( Spin1dec1 ); |
136 $("#calcium").jqxNumberInput( Spin1dec ); |
137 $("#bicarbonate").jqxNumberInput( Spin1dec1 ); |
137 $("#bicarbonate").jqxNumberInput( Spin1dec ); |
138 $("#sulfate").jqxNumberInput( Spin1dec1 ); |
138 $("#sulfate").jqxNumberInput( Spin1dec ); |
139 $("#chloride").jqxNumberInput( Spin1dec1 ); |
139 $("#chloride").jqxNumberInput( Spin1dec ); |
140 $("#sodium").jqxNumberInput( Spin1dec1 ); |
140 $("#sodium").jqxNumberInput( Spin1dec ); |
141 $("#magnesium").jqxNumberInput( Spin1dec1 ); |
141 $("#magnesium").jqxNumberInput( Spin1dec ); |
142 $("#ph").jqxNumberInput( Spin2pH ); |
142 $("#ph").jqxNumberInput( Spin2pH ); |
143 $("#total_alkalinity").jqxNumberInput( Spin1dec1 ); |
143 $("#total_alkalinity").jqxNumberInput( Spin1dec ); |
144 |
144 |
145 var dataAdapter = new $.jqx.dataAdapter(source); |
145 var dataAdapter = new $.jqx.dataAdapter(source); |
146 var editrow = -1; |
146 var editrow = -1; |
147 // initialize jqxGrid |
147 // initialize jqxGrid |
148 $("#jqxgrid").jqxGrid({ |
148 $("#jqxgrid").jqxGrid({ |