www/js/rec_edit.js

changeset 132
aaefac2d08a3
parent 131
71f1ca48c551
child 133
22d28dd9c041
equal deleted inserted replaced
131:71f1ca48c551 132:aaefac2d08a3
825 var high = parseFloat($("#boil_time").jqxNumberInput('decimal')); 825 var high = parseFloat($("#boil_time").jqxNumberInput('decimal'));
826 if (value < 0 || value > high ) { 826 if (value < 0 || value > high ) {
827 return { result: false, message: "De tijd moet 0-"+high+" zijn" }; 827 return { result: false, message: "De tijd moet 0-"+high+" zijn" };
828 } 828 }
829 return true; 829 return true;
830 } // TODO: Only enable editing if Boil, else use fixed values. 830 }
831 // $("#grid").jqxGrid('setcolumnproperty', datafield, 'editable', event.args.checked); maar dan per cell
832 }, 831 },
833 { text: 'IBU', editable: false, datafield: 'ibu', width: 80, align: 'right', 832 { text: 'IBU', editable: false, datafield: 'ibu', width: 80, align: 'right',
834 cellsrenderer: function (index, datafield, value, defaultvalue, column, rowdata) { 833 cellsrenderer: function (index, datafield, value, defaultvalue, column, rowdata) {
835 var ibu = toIBU(rowdata.h_useat, 834 var ibu = toIBU(rowdata.h_useat,
836 rowdata.h_form, 835 rowdata.h_form,

mercurial