Fix issue with volume up/down shortcut

master
François-Xavier Thomas 9 years ago
parent 3fdb07aa27
commit 4f2887e60a
No known key found for this signature in database
GPG Key ID: 64337406D2DD45CE
  1. 3
      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);

Loading…
Cancel
Save