diff options
author | Robin <robin@Amaya.(none)> | 2010-05-02 14:39:58 +0200 |
---|---|---|
committer | Robin <robin@Amaya.(none)> | 2010-05-02 14:39:58 +0200 |
commit | 5a500a2455c6dde0cb61e3b35eb3f6a0b1409f4b (patch) | |
tree | ecf2aeca416bc07957d6de1ef3506fd5c0deee5a /js | |
parent | 15b284578e8e2ec0c38439a02a554921aa13786d (diff) | |
download | nextcloud-server-5a500a2455c6dde0cb61e3b35eb3f6a0b1409f4b.tar.gz nextcloud-server-5a500a2455c6dde0cb61e3b35eb3f6a0b1409f4b.zip |
fix first run dialog in konqueror
Diffstat (limited to 'js')
-rwxr-xr-x | js/filebrowser.js | 12 |
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){ |