summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorRobin <robin@Amaya.(none)>2010-05-02 14:39:58 +0200
committerRobin <robin@Amaya.(none)>2010-05-02 14:39:58 +0200
commit5a500a2455c6dde0cb61e3b35eb3f6a0b1409f4b (patch)
treeecf2aeca416bc07957d6de1ef3506fd5c0deee5a /js
parent15b284578e8e2ec0c38439a02a554921aa13786d (diff)
downloadnextcloud-server-5a500a2455c6dde0cb61e3b35eb3f6a0b1409f4b.tar.gz
nextcloud-server-5a500a2455c6dde0cb61e3b35eb3f6a0b1409f4b.zip
fix first run dialog in konqueror
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){