Allow to create directories when they are selectable
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
0cf76aa2e8
commit
22e748ed38
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -299,7 +299,7 @@ const Dialogs = {
|
|||
}
|
||||
|
||||
var newButton = self.$filePicker.find('.actions.creatable .button-add')
|
||||
if (type === self.FILEPICKER_TYPE_CHOOSE) {
|
||||
if (type === self.FILEPICKER_TYPE_CHOOSE && !options.allowDirectoryChooser) {
|
||||
newButton.hide()
|
||||
}
|
||||
newButton.on('focus', function() {
|
||||
|
|
Loading…
Reference in New Issue