diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-01-02 17:02:55 +0100 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-01-02 17:03:16 +0100 |
commit | 03b8a065cf37c040452b567a2a9050f637cbda94 (patch) | |
tree | 408de4352ad9946dbd0877a622e14df2d18bdf86 /apps/files/js/files.js | |
parent | 4a7604daa26d9c79585aa3ba249f879b31f6eaa2 (diff) | |
download | nextcloud-server-03b8a065cf37c040452b567a2a9050f637cbda94.tar.gz nextcloud-server-03b8a065cf37c040452b567a2a9050f637cbda94.zip |
input/form switching cleanup
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r-- | apps/files/js/files.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 6d1be45cddc..c795469e2d5 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -477,7 +477,7 @@ $(document).ready(function() { $('#new').removeClass('active'); $('#new li').each(function(i,element){ if($(element).children('p').length==0){ - $(element).children('input').remove(); + $(element).children('form').remove(); $(element).append('<p>'+$(element).data('text')+'</p>'); } }); @@ -505,8 +505,8 @@ $(document).ready(function() { var text=$(this).children('p').text(); $(this).data('text',text); $(this).children('p').remove(); - var input=$('<input>'); var form=$('<form></form>'); + var input=$('<input>'); form.append(input); $(this).append(form); input.focus(); |