Skip to content

Commit

Permalink
Update cmd.history.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Phpvarious authored Feb 7, 2024
1 parent 1b9af09 commit 329772c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions desktop/modal/cmd.history.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<div id="md_history" class="md_history" data-modalType="md_history">
<button id="bt_toggleOptions" class="btn" style="position: absolute; right: 8px; top: 0;z-index: 2;"><i class="fas fa-arrow-down"></i></button>
<div id="div_historyOptions">
<div id="div_modalHistoryOptions">
<div class="options col-lg-4" style="display:none">
<div class="input-group input-group-sm">
<input id="in_startDate" class="form-control input-sm in_datepicker roundedLeft" style="width: 90px;" value="<?php echo $date['start'] ?>"/>
Expand Down Expand Up @@ -162,8 +162,10 @@
titleEl.innerHTML = curTitle + ' : ' + jeedom.history.chart[this.__el__].chart.series[0].name
}
} else {
document.getElementById('div_historyOptions').querySelectorAll('input, select, a:not(#bt_openInHistory)').forEach(_ctrl => {
_ctrl.addClass('disabled')
document.getElementById('div_modalHistoryOptions').querySelectorAll('input, select, a').forEach(_ctrl => {
if (_ctrl.getAttribute('id') != 'bt_openInHistory' && _ctrl.getAttribute('id') != 'in_startDate' && _ctrl.getAttribute('id') != 'in_endDate' && _ctrl.getAttribute('id') != 'bt_validChangeDate') {
_ctrl.addClass('disabled')
}
})
}
this.resizeHighChartModal()
Expand Down

0 comments on commit 329772c

Please sign in to comment.