aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/oc-dialogs.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/oc-dialogs.js')
-rw-r--r--core/js/oc-dialogs.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index c08b72bf183..8a311523f4f 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -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();