hide new folder button in choose type filepicker

Signed-off-by: Florian Schunk <florian.schunk@rwth-aachen.de>
This commit is contained in:
Florian Schunk 2019-03-28 13:06:06 +01:00 committed by Roeland Jago Douma
parent fb5eebd33b
commit 80e7f047bf
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 3 additions and 0 deletions

View 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();