diff options
author | Florian Schunk <florian.schunk@rwth-aachen.de> | 2019-03-28 13:06:06 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-03-29 20:21:39 +0100 |
commit | 80e7f047bf097780ae442dc50901c73f09dfa2ad (patch) | |
tree | 611f85afd3627d948d73d483303497614a3c579d /core | |
parent | fb5eebd33b8c500e13b3ec00941933f2adce7b29 (diff) | |
download | nextcloud-server-80e7f047bf097780ae442dc50901c73f09dfa2ad.tar.gz nextcloud-server-80e7f047bf097780ae442dc50901c73f09dfa2ad.zip |
hide new folder button in choose type filepicker
Signed-off-by: Florian Schunk <florian.schunk@rwth-aachen.de>
Diffstat (limited to 'core')
-rw-r--r-- | core/js/oc-dialogs.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index c08b72bf183..8a311523f4f 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -264,6 +264,9 @@ var OCdialogs = { } var newButton = self.$filePicker.find('.actions.creatable .button-add'); + if (type === self.FILEPICKER_TYPE_CHOOSE) { + newButton.hide(); + } newButton.on('focus', function() { self.$filePicker.ocdialog('setEnterCallback', function() { event.stopImmediatePropagation(); |