mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-04 14:07:32 +00:00
display a hint if no bookmarks are in the system
This commit is contained in:
parent
04a5e6705f
commit
8b5cf9983e
2 changed files with 9 additions and 2 deletions
|
|
@ -261,6 +261,7 @@ $.fn.bookmarktable = function() {
|
|||
$(this).on('click', '.bookmark-add', function() {
|
||||
if ($table.find('tr[data-id="new"]').length) return;
|
||||
|
||||
$table.find('.emptytext').remove();
|
||||
var row = $('<tr data-id="new">');
|
||||
|
||||
var inputs = Object.fromEntries(
|
||||
|
|
@ -371,6 +372,7 @@ $.fn.bookmarktable = function() {
|
|||
contentType: 'application/json',
|
||||
method: 'POST'
|
||||
}).done(function(data){
|
||||
$table.find('.emptytext').remove();
|
||||
var modes = $table.data('modes');
|
||||
if (data.length && data.length == selected.length) {
|
||||
$table.append(data.map(function(obj, index) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue