From 39a4366eabcdc8382aa7db8e9bd5c2c8e12d4250 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sat, 28 Sep 2019 16:54:24 +0200 Subject: [PATCH] locator wrappers aren't even needed --- htdocs/css/openwebrx.css | 6 ------ htdocs/openwebrx.js | 6 +++--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/htdocs/css/openwebrx.css b/htdocs/css/openwebrx.css index 75d9535..8eb6efe 100644 --- a/htdocs/css/openwebrx.css +++ b/htdocs/css/openwebrx.css @@ -169,12 +169,6 @@ input[type=range]:focus::-ms-fill-upper z-index: 1000; } -#openwebrx-bookmarks-container .bookmark-locator { - display: inline-block; - position: absolute; - bottom: 0; -} - #openwebrx-bookmarks-container .bookmark { font-size: 12px; background-color: #FFFF00; diff --git a/htdocs/openwebrx.js b/htdocs/openwebrx.js index c409555..d0c3de1 100644 --- a/htdocs/openwebrx.js +++ b/htdocs/openwebrx.js @@ -1340,7 +1340,7 @@ function update_bookmarks(bookmarks) { $container = $('#openwebrx-bookmarks-container'); $container.empty(); bookmarks.forEach(function(b){ - $bookmark = $('
' + b.name + '
'); + $bookmark = $('
' + b.name + '
'); $bookmark.data(b); $container.append($bookmark); }); @@ -1349,7 +1349,7 @@ function update_bookmarks(bookmarks) { function position_bookmarks() { range = get_visible_freq_range(); - $('#openwebrx-bookmarks-container .bookmark-locator').each(function(){ + $('#openwebrx-bookmarks-container .bookmark').each(function(){ $(this).css('left', scale_px_from_freq($(this).data('frequency'), range)); }); } @@ -1359,7 +1359,7 @@ function init_bookmarks() { $container.click(function(e){ $container.find('.bookmark').removeClass('selected'); $bookmark = $(e.target); - b = $bookmark.closest('.bookmark-locator').data(); + b = $bookmark.closest('.bookmark').data(); if (!b || !b.frequency || !b.modulation) return; demodulator_set_offset_frequency(0, b.frequency - center_freq); demodulator_analog_replace(b.modulation);