[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    =?utf-8?q?=5Bowncloud=5D_plugins/audioplayer=3A_Fix_the_audio_pl?=
From:       Artur Duque de Souza <asouza () kde ! org>
Date:       2011-02-22 14:17:08
Message-ID: 20110222141708.0FD74A609B () git ! kde ! org
[Download RAW message or body]

Git commit 09cbe1301ebaca8ea82c2dad93d98faf568a01bb by Artur Duque de Souza.
Committed on 22/02/2011 at 15:15.
Pushed by asouza into branch 'master'.

Fix the audio player

If we don't use the ".php" extension the audio won't play because
it cant find the file.

Signed-off-by: Artur Duque de Souza <asouza@kde.org>

M  +1    -1    plugins/audioplayer/audioplayer.js     

http://commits.kde.org/owncloud/09cbe1301ebaca8ea82c2dad93d98faf568a01bb

diff --git a/plugins/audioplayer/audioplayer.js b/plugins/audioplayer/audioplayer.js
index 07e9f5e..817cc7d 100644
--- a/plugins/audioplayer/audioplayer.js
+++ b/plugins/audioplayer/audioplayer.js
@@ -1,7 +1,7 @@
 OC_AudioPlayer = new Object();
 
 OC_AudioPlayer.playAudio = function(dir, file, type) {
-	var path = WEBROOT + \
'/files/api?action=get&dir='+encodeURIComponent(dir)+'&file='+encodeURIComponent(file);
 +	var path = WEBROOT + \
'/files/api.php?action=get&dir='+encodeURIComponent(dir)+'&file='+encodeURIComponent(file);
  
 	OC_AudioPlayer.audioFrame = document.createElement('div');
 	OC_AudioPlayer.audioFrame.setAttribute('id', 'audioframe');


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic