]> source.dussan.org Git - nextcloud-server.git/commitdiff
input/form switching cleanup
authorJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 2 Jan 2013 16:02:55 +0000 (17:02 +0100)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 2 Jan 2013 16:03:16 +0000 (17:03 +0100)
apps/files/css/files.css
apps/files/js/files.js

index 99c39f0acdba2868c3d3e484026d5dff689e4d54..f292c5c8c3ff6e522c613ab47d47ad398e6bb47c 100644 (file)
@@ -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;
index 6d1be45cddceca4695cd2b5e63ee7b4dd4fb48c4..c795469e2d5f866db2b420176521255a1e528cf7 100644 (file)
@@ -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();