diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-04-01 10:26:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-01 10:26:00 +0200 |
commit | a1319998d1bc02ec1979ca4e4e7d2c846785c094 (patch) | |
tree | ab67656dcefcc1e2a877320b4ce14727841652c2 | |
parent | a7c0254b45c1966c5c2a3d6f18b0b749d0eb1062 (diff) | |
parent | 80e7f047bf097780ae442dc50901c73f09dfa2ad (diff) | |
download | nextcloud-server-a1319998d1bc02ec1979ca4e4e7d2c846785c094.tar.gz nextcloud-server-a1319998d1bc02ec1979ca4e4e7d2c846785c094.zip |
Merge pull request #14900 from rummatee/issue14834
hide new folder button in choose type filepicker
-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(); |