--- a/www/js/global.js Mon Apr 22 15:12:27 2024 +0200 +++ b/www/js/global.js Mon Apr 22 20:58:55 2024 +0200 @@ -45,10 +45,23 @@ }, DeviceDirectionAdapter = new $.jqx.dataAdapter(DeviceDirectionSource), +// Temp sensors droptdown list +tempsensorSource = { + datatype: 'json', + datafields: [ + { name: 'uuid', type: 'string' }, + { name: 'name', type: 'string' } + ], + url: 'drop_tempsensors.php' +}, +tempsensorlist = new $.jqx.dataAdapter(tempsensorSource), + // options for editors Show0dec = { inputMode: 'simple', theme: theme, width: 90, height: 23, readOnly: true, decimalDigits: 0 }, +Show1dec = { inputMode: 'simple', theme: theme, width: 90, height: 23, readOnly: true, decimalDigits: 1 }, Spin0dec = { inputMode: 'simple', theme: theme, width: 110, height: 23, min: 0, decimalDigits: 0, spinButtons: true }, + PosInt = { inputMode: 'simple', theme: theme, width: 110, height: 23, min: 0, decimalDigits: 0, spinButtons: true }, SubInt = { inputMode: 'simple', theme: theme, width: 110, height: 23, min: 0, max: 63, decimalDigits: 0, spinButtons: true }, GPIOInt = { inputMode: 'simple', theme: theme, width: 110, height: 23, min: -1, max:31, decimalDigits: 0, spinButtons: true };