Improved the presentation forecast.

This commit is contained in:
2026-04-02 16:26:49 +10:00
parent a88811e146
commit 9103542602
3 changed files with 80 additions and 3 deletions

View File

@@ -2,6 +2,19 @@ $(document).ready(function () {
var nextCtl = $('#vars').attr('nextCtl');
var c = $('button.accordion-button[data-bs-target="#ctl' + nextCtl + '"]');
$(c).click();
document.querySelectorAll('[data-bs-toggle="tooltip"]').forEach(function(el) {
new bootstrap.Tooltip(el);
});
$('.cal-grid-cell').click(function() {
var ctl = $(this).data('ctl');
var btn = $('button.accordion-button[data-bs-target="#ctl' + ctl + '"]');
if (btn.hasClass('collapsed')) {
btn.click();
}
btn.closest('.accordion-item')[0].scrollIntoView({ behavior: 'smooth', block: 'start' });
});
$('button[action]').click(function() {
var action = $(this).attr('action');
var url = null;