diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-08-23 12:48:15 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-08-23 12:48:15 +0000 |
| commit | ab099c22c81a4f800d9d6d964f7426cfcb8c3419 (patch) | |
| tree | 0f4b605eaede988bcfbf868f6e34ae238163e29d /plugins | |
| parent | 136db975da91b1155544b5634ccc94f07b220987 (diff) | |
- Fix path to sound file (#1488049)
git-svn-id: https://svn.roundcube.net/trunk@5113 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/newmail_notifier/newmail_notifier.js | 8 | ||||
| -rw-r--r-- | plugins/newmail_notifier/newmail_notifier.php | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/plugins/newmail_notifier/newmail_notifier.js b/plugins/newmail_notifier/newmail_notifier.js index 6e1ae9fbb..6afd66aee 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 @@ function newmail_notifier_basic() // 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); } diff --git a/plugins/newmail_notifier/newmail_notifier.php b/plugins/newmail_notifier/newmail_notifier.php index 679072c7a..a72d728dc 100644 --- a/plugins/newmail_notifier/newmail_notifier.php +++ b/plugins/newmail_notifier/newmail_notifier.php @@ -7,7 +7,7 @@ * 1. Basic - focus browser window and change favicon * 2. Sound - play wav file * - * @version 0.1 + * @version 0.2 * @author Aleksander Machniak <alec@alec.pl> * * |
