From 4f2887e60af6afa89ac5f0f087d603fbc0a1e19e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20Thomas?= Date: Sun, 19 Jun 2016 00:16:59 +0200 Subject: [PATCH] Fix issue with volume up/down shortcut --- libresonic-main/src/main/webapp/WEB-INF/jsp/playQueue.jsp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libresonic-main/src/main/webapp/WEB-INF/jsp/playQueue.jsp b/libresonic-main/src/main/webapp/WEB-INF/jsp/playQueue.jsp index 7e6cb2b9..447ac3dc 100644 --- a/libresonic-main/src/main/webapp/WEB-INF/jsp/playQueue.jsp +++ b/libresonic-main/src/main/webapp/WEB-INF/jsp/playQueue.jsp @@ -241,7 +241,8 @@ var volume = parseInt($("#castVolume").slider("option", "value")) + gain; $("#castVolume").slider("option", "value", volume); } else if (jwplayer()) { - jwplayer().setVolume(jwplayer().getVolume() + gain); + var volume = parseInt(jwplayer().getVolume()); + jwplayer().setVolume(volume + gain); } else { var value = parseInt($("#jukeboxVolume").slider("option", "value")); $("#jukeboxVolume").slider("option", "value", volume);