From: Jan-Christoph Borchardt Date: Mon, 4 Jul 2011 19:46:20 +0000 (+0200) Subject: applied Ryan's patch for Bug 276007 - Folder list does not get updated when creating... X-Git-Tag: v3.0~267^2~437 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=53ae56097de2098a2ffd1a8dd1076825bc93305d;p=nextcloud-server.git applied Ryan's patch for Bug 276007 - Folder list does not get updated when creating the first folder. --- 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 +}