diff -r eb35aa378579 -r 25696a91b395 www/js/inv_fermentables.js --- a/www/js/inv_fermentables.js Mon Feb 11 20:03:21 2019 +0100 +++ b/www/js/inv_fermentables.js Mon Feb 11 20:41:29 2019 +0100 @@ -172,7 +172,7 @@ }); $("#always_on_stock").jqxCheckBox({ theme: theme, width: 120, height: 23 }); $("#di_ph").jqxNumberInput( Spin2pH ); - $("#acid_to_ph_57").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 110, height: 23, min: -1000, max: 1000, decimalDigits: 2, spinButtons: true, spinButtonsStep: 0.01 }); + $("#acid_to_ph_57").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: -1000, max: 1000, decimalDigits: 4, spinButtons: true }); $("#graintype").jqxDropDownList({ theme: theme, source: GrainTypeAdapter, @@ -186,8 +186,7 @@ $("#production_date").jqxDateTimeInput( Dateopts ); $("#cost").jqxNumberInput( Spin2dec ); $("#tht_date").jqxDateTimeInput( Dateopts ); - $("#totval").jqxNumberInput( Spin2dec ); - $("#totval").jqxNumberInput({ width: 90, readOnly: true, spinButtons: false }); + $("#totval").jqxNumberInput( Show2dec ); var dataAdapter = new $.jqx.dataAdapter(source); var editrow = -1; @@ -242,22 +241,11 @@ { text: 'Herkomst', datafield: 'origin', width: 150 }, { text: 'Producent', datafield: 'supplier', width: 140 }, { text: 'Vergistbaar product', datafield: 'name', menu: false }, - { text: 'Soort', width: 135, filtertype: 'list', /*filteritems: FermentableTypeAdapter, displayfield: 'nl',*/ datafield: 'type', + { text: 'Soort', width: 135, filtertype: 'list', datafield: 'type', cellsrenderer: function (index, datafield, value, defaultvalue, column, rowdata) { return "
" + FermentableTypeData[rowdata.type].nl + "
"; }, -// createfilterwidget: function (column, htmlElement, editor) { -// editor.jqxDropDownList({ displayMember: "nl", valueMember: "id" }); -// } -// createfilterwidget: function (column, columnElement, widget) { -// widget.jqxDropDownList({ dropDownWidth: 350 }); -// } }, -// { text: 'Soort', datafield: 'type', align: 'center', cellsalign: 'center', width: 135, -// cellsrenderer: function (index, datafield, value, defaultvalue, column, rowdata) { -// return "
" + FermentableTypeData[value].nl + "
"; -// }, -// }, { text: 'Graan type', datafield: 'graintype', align: 'center', cellsalign: 'center', width: 125, cellsrenderer: function (index, datafield, value, defaultvalue, column, rowdata) { return "
" + GrainTypeData[value].nl + "
";