]> source.dussan.org Git - nextcloud-server.git/commitdiff
hide new folder button in choose type filepicker 14900/head
authorFlorian Schunk <florian.schunk@rwth-aachen.de>
Thu, 28 Mar 2019 12:06:06 +0000 (13:06 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Fri, 29 Mar 2019 19:21:39 +0000 (20:21 +0100)
Signed-off-by: Florian Schunk <florian.schunk@rwth-aachen.de>
core/js/oc-dialogs.js

index c08b72bf1835be5018350ce08751737a2ccace72..8a311523f4f44fb65ffefc4478ba969bd2bd206e 100644 (file)
@@ -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();