Merge pull request #14900 from rummatee/issue14834
hide new folder button in choose type filepicker
This commit is contained in:
commit
a1319998d1
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue