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 | |
parent | 4a7604daa26d9c79585aa3ba249f879b31f6eaa2 (diff) | |
download | nextcloud-server-03b8a065cf37c040452b567a2a9050f637cbda94.tar.gz nextcloud-server-03b8a065cf37c040452b567a2a9050f637cbda94.zip |
input/form switching cleanup
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/css/files.css | 2 | ||||
-rw-r--r-- | apps/files/js/files.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/css/files.css b/apps/files/css/files.css index 99c39f0acdb..f292c5c8c3f 100644 --- a/apps/files/css/files.css +++ b/apps/files/css/files.css @@ -21,7 +21,7 @@ #new>ul>li { height:20px; margin:.3em; padding-left:2em; padding-bottom:0.1em; background-repeat:no-repeat; cursor:pointer; } #new>ul>li>p { cursor:pointer; } -#new>ul>li>input { padding:0.3em; margin:-0.3em; } +#new>ul>li>form>input { padding:0.3em; margin:-0.3em; } #upload { height:27px; padding:0; margin-left:0.2em; overflow:hidden; 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(); |