aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rwxr-xr-xjs/filebrowser.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/js/filebrowser.js b/js/filebrowser.js
index c95e1290642..3ec8994c029 100755
--- a/js/filebrowser.js
+++ b/js/filebrowser.js
@@ -22,12 +22,14 @@
OC_FILES.browser=new Object();
OC_FILES.browser.showInitial=function(){
- var dir=''
- var loc=document.location.toString();
- if(loc.indexOf('#')!=-1){
- dir=loc.substring(loc.indexOf('#')+1);
+ if(document.getElementById('content')){
+ var dir=''
+ var loc=document.location.toString();
+ if(loc.indexOf('#')!=-1){
+ dir=loc.substring(loc.indexOf('#')+1);
+ }
+ OC_FILES.getdirectorycontent(dir,OC_FILES.browser.show_callback,true);
}
- OC_FILES.getdirectorycontent(dir,OC_FILES.browser.show_callback,true);
}
OC_FILES.browser.show=function(dir,forceReload){