diff options
author | Christian Aigner <christian.aigner@huemer-it.com> | 2019-01-31 15:30:20 +0100 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2019-02-01 11:13:10 +0000 |
commit | e4c20ae67dfef70653d5ab53459cab2f9c1b831c (patch) | |
tree | 598bf58a7bc37dd352421f49ae88a0504355417b /apps | |
parent | 52f0633e9c5b961d22e91d48b9d7b60629a9b9aa (diff) | |
download | nextcloud-server-e4c20ae67dfef70653d5ab53459cab2f9c1b831c.tar.gz nextcloud-server-e4c20ae67dfef70653d5ab53459cab2f9c1b831c.zip |
HBOX-297 trim in webfrontend for new files to stay compatible with windows
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/filelist.js | 2 | ||||
-rw-r--r-- | apps/files/js/newfilemenu.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 7a8a8b80e10..37cc31ec87b 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2471,7 +2471,7 @@ } try { - var newName = input.val(); + var newName = input.val().trim(); input.tooltip('hide'); form.remove(); diff --git a/apps/files/js/newfilemenu.js b/apps/files/js/newfilemenu.js index 69450e97c2a..305af051271 100644 --- a/apps/files/js/newfilemenu.js +++ b/apps/files/js/newfilemenu.js @@ -167,7 +167,7 @@ event.preventDefault(); if (checkInput()) { - var newname = $input.val(); + var newname = $input.val().trim(); /* Find the right actionHandler that should be called. * Actions is retrieved by using `actionSpec.id` */ |