Allow selecting the root folder
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
b5599a7673
commit
f002a2d2f6
|
@ -223,7 +223,11 @@ var OCdialogs = {
|
||||||
// Hence this is one of the approach to get the choose button.
|
// Hence this is one of the approach to get the choose button.
|
||||||
var getOcDialog = self.$filePicker.closest('.oc-dialog');
|
var getOcDialog = self.$filePicker.closest('.oc-dialog');
|
||||||
var buttonEnableDisable = getOcDialog.find('.primary');
|
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()) {
|
if (!OC.Util.hasSVGSupport()) {
|
||||||
OC.Util.replaceSVG(self.$filePicker.parent());
|
OC.Util.replaceSVG(self.$filePicker.parent());
|
||||||
|
|
Loading…
Reference in New Issue