From fd6146b6780c526a04682cda89b133e2d9bbd910 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 25 Aug 2011 04:30:01 -0400
Subject: [PATCH] - Applied fixes from trunk up to r5126

---
 plugins/newmail_notifier/newmail_notifier.js |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/plugins/newmail_notifier/newmail_notifier.js b/plugins/newmail_notifier/newmail_notifier.js
index 6e1ae9f..6afd66a 100644
--- a/plugins/newmail_notifier/newmail_notifier.js
+++ b/plugins/newmail_notifier/newmail_notifier.js
@@ -1,7 +1,7 @@
 /**
  * New Mail Notifier plugin script
  *
- * @version 0.1
+ * @version 0.2
  * @author Aleksander Machniak <alec@alec.pl>
  */
 
@@ -50,14 +50,16 @@
 // Sound notification
 function newmail_notifier_sound()
 {
+    var elem, src = 'plugins/newmail_notifier/sound.wav';
+
     // HTML5
     try {
-        var elem = $('<audio src="success.wav" />');
+        elem = $('<audio src="' + src + '" />');
         elem.get(0).play();
     }
     // old method
     catch (e) {
-        var elem = $('<embed id="sound" src="success.wav" hidden=true autostart=true loop=false />');
+        elem = $('<embed id="sound" src="' + src + '" hidden=true autostart=true loop=false />');
         elem.appendTo($('body'));
         window.setTimeout("$('#sound').remove()", 5000);
     }

--
Gitblit v1.9.1