From d1d473352f657d78aa799351599b6025a738524f Mon Sep 17 00:00:00 2001 From: Jakob Date: Wed, 14 Dec 2016 17:01:26 +0100 Subject: [PATCH] fix adding current path to new file in filemanager twice --- resources/views/server/files/add.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/server/files/add.blade.php b/resources/views/server/files/add.blade.php index 62cff9719..ac3fdadea 100644 --- a/resources/views/server/files/add.blade.php +++ b/resources/views/server/files/add.blade.php @@ -268,7 +268,7 @@ $(window).load(function () { url: '{{ route('server.files.save', $server->uuidShort) }}', headers: { 'X-CSRF-Token': '{{ csrf_token() }}' }, data: { - file: '{{ $directory }}' + $('#file_name').val(), + file: $('#file_name').val(), contents: Editor.getValue() } }).done(function (data) {