From 730712e9ba22ac03ca9af0be77599d64890c76b9 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 5 Nov 2011 14:54:13 +0000 Subject: [PATCH] fix bugs regarding the state of the video player volume and mute buttons --- source/Ox.UI/js/Video/Ox.VideoPlayer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/Ox.UI/js/Video/Ox.VideoPlayer.js b/source/Ox.UI/js/Video/Ox.VideoPlayer.js index 75988661..44330f41 100644 --- a/source/Ox.UI/js/Video/Ox.VideoPlayer.js +++ b/source/Ox.UI/js/Video/Ox.VideoPlayer.js @@ -991,7 +991,7 @@ Ox.VideoPlayer = function(options, self) { }) .bindEvent({ click: function() { - toggleMuted(); + toggleMuted('button'); } }) .appendTo(self.$volume); @@ -1417,15 +1417,15 @@ Ox.VideoPlayer = function(options, self) { function getVolumeImageURL() { var symbol; if (self.options.muted || self.options.volume == 0) { - symbol = 'unmute'; + symbol = 'Unmute'; } else if (self.options.volume < 1/3) { symbol = 'VolumeUp'; } else if (self.options.volume < 2/3) { symbol = 'VolumeDown'; } else { - symbol = 'mute'; + symbol = 'Mute'; } - return Ox.UI.getImageURL('symbol' + symbol, 'modern'); + return Ox.UI.getImageURL('symbol' + symbol); } function goToNextClip(direction) {