From f62617df56bcfd4592df027e3218cc8e8b09a66f Mon Sep 17 00:00:00 2001 From: Evan Harris Date: Wed, 20 Nov 2019 04:52:53 -0600 Subject: [PATCH] Added refresh link to all home navigation types This adds a refresh link to all homePager.jsp browse methods in a consistent place, so that users can easily refresh the proper frame without causing a whole page refresh that would interrupt the web player. This is a follow-on to #1339 which removed the auto-refresh feature. A side effect of this cleanup was to change all spacing between sets of elements to a standard 2em to the right which made the layout less convoluted. --- .../src/main/webapp/WEB-INF/jsp/home.jsp | 4 + .../src/main/webapp/WEB-INF/jsp/homePager.jsp | 116 +++++++++--------- 2 files changed, 62 insertions(+), 58 deletions(-) diff --git a/airsonic-main/src/main/webapp/WEB-INF/jsp/home.jsp b/airsonic-main/src/main/webapp/WEB-INF/jsp/home.jsp index bfeb269a..9e183b83 100644 --- a/airsonic-main/src/main/webapp/WEB-INF/jsp/home.jsp +++ b/airsonic-main/src/main/webapp/WEB-INF/jsp/home.jsp @@ -16,6 +16,10 @@ } + function refresh() { + top.main.location.href = top.main.location.href; + } + function playShuffle() { top.playQueue.onPlayShuffle('${model.listType}', ${model.listOffset}, ${model.listSize}, '${model.genre}', '${model.decade}') } diff --git a/airsonic-main/src/main/webapp/WEB-INF/jsp/homePager.jsp b/airsonic-main/src/main/webapp/WEB-INF/jsp/homePager.jsp index a04e3d25..7f838425 100644 --- a/airsonic-main/src/main/webapp/WEB-INF/jsp/homePager.jsp +++ b/airsonic-main/src/main/webapp/WEB-INF/jsp/homePager.jsp @@ -12,37 +12,28 @@ - - - - - " alt="Refresh" style="height:16px;"> - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + @@ -51,37 +42,46 @@ + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + Refresh + + + - + Shuffle