From 2b2caf4d9f43fcfe88a4560ed716e9bf5e285d45 Mon Sep 17 00:00:00 2001 From: simogeo Date: Fri, 25 Jan 2013 12:29:09 +0100 Subject: [PATCH] fixing js error (issue #127) --- scripts/filemanager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/filemanager.js b/scripts/filemanager.js index 7801a691..888e20d8 100644 --- a/scripts/filemanager.js +++ b/scripts/filemanager.js @@ -588,8 +588,8 @@ var addFolder = function(parent, name){ if(parent != fileRoot){ parentNode.next('ul').prepend(newNode).prev('a').click().click(); } else { - $('#filetree > ul').prepend(newNode); - $('#filetree').find('li a[rel="' + parent + name + '/"]').click(function(){ + $('#filetree > ul').prepend(newNode); + $('#filetree').find('li a[rel="' + parent + name + '/"]').attr('class', 'cap_rename cap_delete').click(function(){ getFolderInfo(parent + name + '/'); }).each(function() { $(this).contextMenu(