]> source.dussan.org Git - nextcloud-server.git/commitdiff
applied Ryan's patch for Bug 276007 - Folder list does not get updated when creating...
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Mon, 4 Jul 2011 19:46:20 +0000 (21:46 +0200)
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Mon, 4 Jul 2011 19:46:20 +0000 (21:46 +0200)
files/js/filelist.js

index 14cce8a389790bbab3af270234b3d751ee4cd517..089a34581de86173b4502286567507095c9064fe 100644 (file)
@@ -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
+}