diff options
author | Robin Appelman <robin@icewind.nl> | 2016-10-17 13:08:55 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-10-19 14:18:19 +0200 |
commit | f002a2d2f671c7d177fb3c8eb9fa4aad9d3bca7f (patch) | |
tree | e61db26db5b5ca6a5886f34228a9824def724d30 /core | |
parent | b5599a767310db02badaeaa3087ca15a38b1e7b5 (diff) | |
download | nextcloud-server-f002a2d2f671c7d177fb3c8eb9fa4aad9d3bca7f.tar.gz nextcloud-server-f002a2d2f671c7d177fb3c8eb9fa4aad9d3bca7f.zip |
Allow selecting the root folder
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'core')
-rw-r--r-- | core/js/oc-dialogs.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index 87d16a1394a..00eb0d70a14 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -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()); |