Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #9739 from samjoch/bug-812245-SoundShutDownAnimati…
Browse files Browse the repository at this point in the history
…onNeedsASound

Bug 812245 - [Sounds] Shut down animation needs a sound, r=@timdream
  • Loading branch information
timdream committed May 23, 2013
2 parents 644c3a4 + e0d4f19 commit e4bf807
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/system/js/sleep_menu.js
Expand Up @@ -280,8 +280,11 @@ var SleepMenu = {
div.className = 'step1';
var nextAnimation = function nextAnimation(e) {
// Switch to next class
if (e.target == div)
if (e.target == div) {
div.className = 'step2';
var shutdownSound = new Audio('./resources/sounds/shutdown.ogg');
shutdownSound.play();
}

if (e.target != inner)
return;
Expand Down
Binary file added apps/system/resources/sounds/shutdown.ogg
Binary file not shown.

0 comments on commit e4bf807

Please sign in to comment.