aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/OC
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-10-29 12:22:15 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-12-02 15:28:47 +0100
commit5274c5426818270460ce05ee0071aa9f189281e6 (patch)
tree5686820b9f0493ddc2a7005c39eee648849b9d79 /core/src/OC
parentb99134d0a37269b263eef019d1a58317b1d943ed (diff)
downloadnextcloud-server-5274c5426818270460ce05ee0071aa9f189281e6.tar.gz
nextcloud-server-5274c5426818270460ce05ee0071aa9f189281e6.zip
Add a transfer ownership background job
This job can be initiated by a user to transfer a file/folder to a target user. The target user will have to accept the job. Once that is done the transfers is initiated in the background. Both parties get notified when the job is done. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/src/OC')
-rw-r--r--core/src/OC/dialogs.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js
index 8f50a5d0606..a35af2f7c88 100644
--- a/core/src/OC/dialogs.js
+++ b/core/src/OC/dialogs.js
@@ -486,7 +486,7 @@ const Dialogs = {
// Hence this is one of the approach to get the choose button.
var getOcDialog = self.$filePicker.closest('.oc-dialog')
var buttonEnableDisable = getOcDialog.find('.primary')
- if (self.$filePicker.data('mimetype').indexOf('httpd/unix-directory') !== -1 && !self.$filePicker.data('.allowDirectoryChooser')) {
+ if (self.$filePicker.data('mimetype').indexOf('httpd/unix-directory') !== -1 || self.$filePicker.data('allowDirectoryChooser')) {
buttonEnableDisable.prop('disabled', false)
} else {
buttonEnableDisable.prop('disabled', true)
@@ -1213,7 +1213,7 @@ const Dialogs = {
var getOcDialog = (event.target).closest('.oc-dialog')
var buttonEnableDisable = $('.primary', getOcDialog)
this._changeButtonsText(type, dir.split(/[/]+/).pop())
- if (this.$filePicker.data('mimetype').indexOf('httpd/unix-directory') !== -1) {
+ if (this.$filePicker.data('mimetype').indexOf('httpd/unix-directory') !== -1 || this.$filePicker.data('allowDirectoryChooser')) {
buttonEnableDisable.prop('disabled', false)
} else {
buttonEnableDisable.prop('disabled', true)