1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fixes #189 - Dashboard remember volume not working

This commit is contained in:
Luke Pulverenti 2013-04-27 15:38:24 -04:00
parent 7e3e103989
commit f9c330fb36

View file

@ -52,14 +52,17 @@
$('#mediaElement', nowPlayingBar).html(html); $('#mediaElement', nowPlayingBar).html(html);
$(".itemAudio").volume = volume; $(".itemAudio").each(function () {
this.volume = volume;
});
$(".itemAudio").on("ended", function () { $(".itemAudio").on("ended", function () {
Playlist.playNext(); Playlist.playNext();
}); });
$(".itemAudio").on("volumechange", function () { $(".itemAudio").on("volumechange", function () {
localStorage.setItem("volume", (this).volume);
localStorage.setItem("volume", this.volume);
}); });
return $('audio', nowPlayingBar)[0]; return $('audio', nowPlayingBar)[0];
@ -187,7 +190,7 @@
}); });
(this).addEvent("volumechange", function () { (this).addEvent("volumechange", function () {
localStorage.setItem("volume", (this).volume()); localStorage.setItem("volume", this.volume());
}); });
(this).addEvent("play", updateProgress); (this).addEvent("play", updateProgress);