summaryrefslogtreecommitdiffstats
path: root/files/js/filelist.js
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-07-04 21:46:20 +0200
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-07-04 21:46:20 +0200
commit53ae56097de2098a2ffd1a8dd1076825bc93305d (patch)
treeade535ab77bd3002fcfbf611d190c287f014f549 /files/js/filelist.js
parent7f0dc638ae5bb651baa171825921055d95cb1c63 (diff)
downloadnextcloud-server-53ae56097de2098a2ffd1a8dd1076825bc93305d.tar.gz
nextcloud-server-53ae56097de2098a2ffd1a8dd1076825bc93305d.zip
applied Ryan's patch for Bug 276007 - Folder list does not get updated when creating the first folder.
Diffstat (limited to 'files/js/filelist.js')
-rw-r--r--files/js/filelist.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/files/js/filelist.js b/files/js/filelist.js
index 14cce8a3897..089a34581de 100644
--- a/files/js/filelist.js
+++ b/files/js/filelist.js
@@ -49,6 +49,10 @@ FileList={
}
}
}
- $(fileElements[pos]).after(element);
+ if(fileElements.length){
+ $(fileElements[pos]).after(element);
+ }else{
+ $('#fileList').append(element);
+ }
}
-} \ No newline at end of file
+}