Skip to content

Commit

Permalink
Merge pull request #33181 from greku/master
Browse files Browse the repository at this point in the history
fixes issue file picker choose button disabled for directory selectio…
  • Loading branch information
Vincent Petry authored Feb 8, 2019
2 parents 8e8fc9e + 919a996 commit b00e983
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/js/oc-dialogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,11 @@ var OCdialogs = {
// Hence this is one of the approach to get the choose button.
var getOcDialog = self.$filePicker.closest('.oc-dialog');
var buttonEnableDisable = getOcDialog.find('.primary');
buttonEnableDisable.prop("disabled", "true");
if (self.$filePicker.data('mimetype') === "httpd/unix-directory") {
buttonEnableDisable.prop("disabled", false);
} else {
buttonEnableDisable.prop("disabled", true);
}

if (!OC.Util.hasSVGSupport()) {
OC.Util.replaceSVG(self.$filePicker.parent());
Expand Down

0 comments on commit b00e983

Please sign in to comment.