summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2012-05-10 23:04:27 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2012-05-10 23:04:27 -0400
commit59a2616105e82d3f17d3eea188ce79fbc107eafa (patch)
treea7793eb2117355be2c9c2f7fb98240c467ba8886 /core/js/js.js
parent20d9a8b6a114b4cdc0f7dc524135e8e0c676a00f (diff)
downloadnextcloud-server-59a2616105e82d3f17d3eea188ce79fbc107eafa.tar.gz
nextcloud-server-59a2616105e82d3f17d3eea188ce79fbc107eafa.zip
Fix music file action i.e. click to play, make OC.filePath act like OC_Helper::linkTo() for index.php links
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 4b0978cfb52..90f1207780d 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -54,11 +54,14 @@ OC={
var isCore=OC.coreApps.indexOf(app)!=-1;
var link=OC.webroot;
if((file.substring(file.length-3) == 'php' || file.substring(file.length-3) == 'css') && !isCore){
- link+='/?app=' + app + '&getfile=';
- if(type){
- link+=encodeURI(type + '/');
+ link+='/?app=' + app;
+ if (file != 'index.php') {
+ link+='&getfile=';
+ if(type){
+ link+=encodeURI(type + '/');
+ }
+ link+= file;
}
- link+= file;
}else if(file.substring(file.length-3) != 'php' && !isCore){
link=OC.appswebroot;
link+='/';