Merge pull request #14900 from rummatee/issue14834

hide new folder button in choose type filepicker
This commit is contained in:
Morris Jobke 2019-04-01 10:26:00 +02:00 committed by GitHub
commit a1319998d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();