Enabling nano-scroller in relevant panels on startup.
This commit is contained in:
parent
90ba72d4b9
commit
c6a0e2bee6
|
|
@ -1567,13 +1567,13 @@ function openwebrx_init() {
|
||||||
initSpectrum();
|
initSpectrum();
|
||||||
initPanels();
|
initPanels();
|
||||||
$('#openwebrx-panel-receiver').demodulatorPanel();
|
$('#openwebrx-panel-receiver').demodulatorPanel();
|
||||||
window.addEventListener("resize", openwebrx_resize);
|
window.addEventListener('resize', openwebrx_resize);
|
||||||
bookmarks = new BookmarkBar();
|
bookmarks = new BookmarkBar();
|
||||||
scanner = new Scanner(bookmarks, 1000);
|
scanner = new Scanner(bookmarks, 1000);
|
||||||
initSliders();
|
initSliders();
|
||||||
|
|
||||||
// Create and run clock
|
// Create and run clock
|
||||||
clock = new Clock($("#openwebrx-clock-utc"));
|
clock = new Clock($('#openwebrx-clock-utc'));
|
||||||
}
|
}
|
||||||
|
|
||||||
function initSliders() {
|
function initSliders() {
|
||||||
|
|
@ -1711,6 +1711,9 @@ function initPanels() {
|
||||||
});
|
});
|
||||||
if (panel_displayed(el)) first_show_panel(el);
|
if (panel_displayed(el)) first_show_panel(el);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Apply nano-scroller to all panels that have 'nano' class
|
||||||
|
$('.nano').nanoScroller();
|
||||||
}
|
}
|
||||||
|
|
||||||
function initSpectrum() {
|
function initSpectrum() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue