mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed issue with slider_values lingering
This commit is contained in:
@@ -16,7 +16,6 @@ var Playercontrols = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
initSlider: function() {
|
initSlider: function() {
|
||||||
window.visualVolume = Playercontrols.visualVolume;
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
vol = (Crypt.get_volume());
|
vol = (Crypt.get_volume());
|
||||||
@@ -30,14 +29,13 @@ var Playercontrols = {
|
|||||||
}
|
}
|
||||||
}catch(e){}
|
}catch(e){}
|
||||||
if(Helper.mobilecheck() || slider_type == "vertical") {
|
if(Helper.mobilecheck() || slider_type == "vertical") {
|
||||||
slider_values.orientation = "vertical";
|
//slider_values.orientation = "vertical";
|
||||||
if(!$(".volume-container").hasClass("hide")) {
|
if(!$(".volume-container").hasClass("hide")) {
|
||||||
$(".volume-container").toggleClass("hide");
|
$(".volume-container").toggleClass("hide");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$("#volume").append("<div class='volume-slid " + slider_type + "'></div>");
|
$("#volume").append("<div class='volume-slid " + slider_type + "'></div>");
|
||||||
$("#volume").append("<div class='volume-handle " + slider_type + "'></div>");
|
$("#volume").append("<div class='volume-handle " + slider_type + "'></div>");
|
||||||
window.player = Player.player;
|
|
||||||
if(slider_type != "vertical") {
|
if(slider_type != "vertical") {
|
||||||
if($("#volume").hasClass("vertical")) {
|
if($("#volume").hasClass("vertical")) {
|
||||||
$("#volume").removeClass("vertical");
|
$("#volume").removeClass("vertical");
|
||||||
|
|||||||
Reference in New Issue
Block a user