Browse Source

Allow selecting the root folder

Signed-off-by: Robin Appelman <robin@icewind.nl>
tags/v11.0RC2
Robin Appelman 7 years ago
parent
commit
f002a2d2f6
No account linked to committer's email address
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      core/js/oc-dialogs.js

+ 5
- 1
core/js/oc-dialogs.js View File

@@ -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());

Loading…
Cancel
Save