diff --git a/README.md b/README.md index c1f9b00..533649a 100644 --- a/README.md +++ b/README.md @@ -25,3 +25,6 @@ Where -t specifies the container id. If you further need to access the sqlite-da ``` docker run -v /tmp/dockerdata:/data/data -v /tmp/nextcloud-app-radio:/opt/nextcloud/apps/radio -d --name nextcloud -p 80:80 rootlogin/nextcloud ``` + +## Reporting bugs +You can report bugs in the public gitlab repository [here](https://git.project-insanity.org/onny/nextcloud-app-radio/issues) and for discussion you can find a section for the app in the offical Nextcloud forums [here](https://help.nextcloud.com/c/apps/radio). diff --git a/js/main.js b/js/main.js index f88e091..5ae880a 100644 --- a/js/main.js +++ b/js/main.js @@ -185,6 +185,18 @@ $(function(){ var baseUrl = OC.generateUrl('/apps/radio'); $.get(baseUrl + '/stations', function ( fav_stations ) { + if (data.length == 0) { + $('#filestable').hide(); + $('#emptycontent').addClass('hidden'); + $('.nofilterresults').removeClass('hidden'); + $('.loading').addClass('hidden'); + } else { + $('#emptycontent').addClass('hidden'); + $('#filestable').show(); + $('.nofilterresults').addClass('hidden'); + $('.loading').addClass('hidden'); + }; + $.each(data, function(i, station) { var isstarred = "" @@ -227,6 +239,7 @@ $(function(){ if (stations.length == 0) { $('#filestable').hide(); $('#emptycontent').removeClass('hidden'); + $('.loading').addClass('hidden'); } else { query_stations(stations); }; @@ -277,6 +290,12 @@ $(function(){ }; function switch_menu(type) { + + $('#filestable').hide(); + $('#emptycontent').addClass('hidden'); + $('.nofilterresults').addClass('hidden'); + $('.loading').removeClass('hidden'); + clearTimeout(searchTimeout); searchTimeout = setTimeout(function(){ $('#app-navigation').find('li').removeClass("active"); diff --git a/templates/main.php b/templates/main.php index 806b439..49a5316 100755 --- a/templates/main.php +++ b/templates/main.php @@ -34,6 +34,15 @@