From 53ae56097de2098a2ffd1a8dd1076825bc93305d Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Mon, 4 Jul 2011 21:46:20 +0200 Subject: [PATCH] applied Ryan's patch for Bug 276007 - Folder list does not get updated when creating the first folder. --- files/js/filelist.js | 8 ++++++-- 1 file 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 +}