diff -r 2ac491548d8d -r 531d5458782f www/js/global.js --- a/www/js/global.js Tue Jan 22 20:27:45 2019 +0100 +++ b/www/js/global.js Tue Jan 22 22:46:58 2019 +0100 @@ -101,6 +101,30 @@ }; var AddedAdapter = new $.jqx.dataAdapter(AddedSource); +var HopTypeData = [ + { id: 0, en: 'Bittering', nl: 'bitterhop' }, + { id: 1, en: 'Aroma', nl: 'aromahop' }, + { id: 2, en: 'Both', nl: 'beide' } +]; +var HopTypeSource = { + localdata: HopTypeData, + datatype: "array", + datafields: [{ name: 'id' }, { name: 'en' }, { name: 'nl' }] +}; +var HopTypeAdapter = new $.jqx.dataAdapter(HopTypeSource); + +var HopFormData = [ + { id: 0, en: 'Pellet', nl: 'pellets' }, + { id: 1, en: 'Plug', nl: 'plugs' }, + { id: 2, en: 'Leaf', nl: 'bellen' } +]; +var HopFormSource = { + localdata: HopFormData, + datatype: "array", + datafields: [{ name: 'id' }, { name: 'en' }, { name: 'nl' }] +}; +var HopFormAdapter = new $.jqx.dataAdapter(HopFormSource); + @@ -164,6 +188,18 @@ spinButtons: true, spinButtonsStep: 0.5 }; +var Perc1dec1 = { + inputMode: 'simple', + spinMode: 'simple', + theme: theme, + width: 110, + height: 23, + min: 0, + max: 100, + decimalDigits: 1, + spinButtons: true, + spinButtonsStep: 0.1 +}; var Spin2dec1 = { inputMode: 'simple', spinMode: 'simple',