|
452 | 452 | el.find('div.picValueSpinner[data-bind="orp.maxDailyVolume"]').hide(); |
453 | 453 | el.find('div.picValueSpinner[data-bind="orp.startDelay"]').hide(); |
454 | 454 | el.find('div.picValueSpinner[data-bind="orp.dosingMethod"]').hide(); |
455 | | - el.find('div.pnl-orpDose-time').hide(); |
| 455 | + |
456 | 456 | //el.find('.pnl-orpDose-mix').hide(); |
457 | 457 | el.find('div.pnl-orpDose-mixtime').hide(); |
| 458 | + el.find('div.pnl-orpDose-time').hide(); |
458 | 459 | el.find('.grp-dosingparams hr').hide() |
459 | 460 | el.find('div.picPickList[data-bind="orp.chlorDosingMethod"]').show(); |
| 461 | + el.find('div.picPickList[data-bind="orp.chlorId"]').show(); |
| 462 | + /* |
| 463 | + 2024.12.25 RSG - support for multiple chlors; but let's not overcomplicate things so leave the settings enabled but ignore them later |
460 | 464 | if (data.orp.chlorDosingMethod > 0) { |
461 | 465 | // need to adjust for more than one chlor... but since there is only a single |
462 | 466 | // "useChlorinator" field this would be a lot of changes across the board |
|
468 | 472 | $('div.picValueSpinner[data-bind="poolSetpoint"]').removeClass('disabled'); |
469 | 473 | $('div.picValueSpinner[data-bind="spaSetpoint"]').removeClass('disabled'); |
470 | 474 | $('div.cfgChlorinator').find('div.picPickList[data-bind="body"]').removeClass('disabled'); |
471 | | - } |
| 475 | + } */ |
472 | 476 | } |
473 | 477 | else { |
474 | 478 | el.find('div.picPickList[data-bind="orp.dosingMethod"]').show(); |
|
481 | 485 | $('div.picValueSpinner[data-bind="poolSetpoint"]').removeClass('disabled'); |
482 | 486 | $('div.picValueSpinner[data-bind="spaSetpoint"]').removeClass('disabled'); |
483 | 487 | $('div.cfgChlorinator').find('div.picPickList[data-bind="body"]').removeClass('disabled'); |
| 488 | + el.find('div.picPickList[data-bind="orp.chlorId"]').hide(); |
| 489 | + el.find('div.pnl-orpDose-time').show(); |
484 | 490 | } |
485 | 491 | } |
486 | 492 | }, |
|
545 | 551 | } |
546 | 552 | }).css({ marginRight: '1rem' }); |
547 | 553 | line = $('<div></div>').appendTo(grpDose); |
| 554 | + $('<div></div>').appendTo(line).pickList({ |
| 555 | + binding: 'orp.chlorId', |
| 556 | + bindColumn: 0, displayColumn: 1, |
| 557 | + labelText: 'Chlorinator', |
| 558 | + columns: [{ binding: 'id', text: 'id', hidden: true }, { binding: 'name', text: 'Name', style: { whiteSpace: 'nowrap' } }], |
| 559 | + items: o.chlorinators.filter(chlor => chlor.isActive), |
| 560 | + inputAttrs: { style: { width: '16rem' } }, |
| 561 | + labelAttrs: { style: { width: '6rem' } } |
| 562 | + }) |
| 563 | + .on('selchanged', function (evt) { |
| 564 | + console.log(`changed chlorinator to ${evt.newItem.name}`); |
| 565 | + self._showOptions(); |
| 566 | + }).css({ marginRight: '1rem' }); |
548 | 567 | $('<div></div>').appendTo(line).pickList({ |
549 | 568 | binding: 'orp.chlorDosingMethod', |
550 | 569 | bindColumn: 0, displayColumn: 2, |
|
0 commit comments