Improved the presentation forecast.
This commit is contained in:
13
app/index.js
13
app/index.js
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user