diff options
author | Joas Schilling <coding@schilljs.com> | 2020-02-19 12:42:54 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-02-25 12:01:14 +0100 |
commit | e05362959f8d9abb5016914693dac01e564354df (patch) | |
tree | 81841c528300711198e820ba83684e6c995b0dbe /apps/files | |
parent | 4cc017d52e975f2c4b527c8f848087c5e6136ccc (diff) | |
download | nextcloud-server-e05362959f8d9abb5016914693dac01e564354df.tar.gz nextcloud-server-e05362959f8d9abb5016914693dac01e564354df.zip |
Copy isFileNameValid function, so the filepicker works without the files app
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/files.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 395b2a53c10..1438fc504e6 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -130,6 +130,8 @@ * @return true if the file name is valid. * Throws a string exception with an error message if * the file name is not valid + * + * NOTE: This function is duplicated in the filepicker inside core/src/OC/dialogs.js */ isFileNameValid: function (name) { var trimmedName = name.trim(); |