]> source.dussan.org Git - nextcloud-server.git/commitdiff
Don't pass content for a new text file from UI, fixes bug oc-1660
authorMichael Gapczynski <mtgap@owncloud.com>
Thu, 6 Sep 2012 20:01:51 +0000 (16:01 -0400)
committerMichael Gapczynski <mtgap@owncloud.com>
Thu, 6 Sep 2012 20:01:51 +0000 (16:01 -0400)
apps/files/js/files.js

index 8229bfa24f1fc70f638d2f157ee8acaa4d7e6080..101e2bad2e4c3d898ad5e96b613527854e453883 100644 (file)
@@ -505,7 +505,7 @@ $(document).ready(function() {
                                case 'file':
                                        $.post(
                                                OC.filePath('files','ajax','newfile.php'),
-                                               {dir:$('#dir').val(),filename:name,content:" \n"},
+                                               {dir:$('#dir').val(),filename:name},
                                                function(result){
                                                        if (result.status == 'success') {
                                                                var date=new Date();