Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorLoïc Hermann <loic.hermann@sciam.fr>2020-03-27 15:31:50 +0300
committernpmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>2020-04-17 09:47:17 +0300
commit6c60b85a87ce17037437353108584116f56d9847 (patch)
treeb3af8ece2614911bcbf6134003d723154d2bea51 /core/src
parenta8809f079b47f30e9fff5a8b7ffb4a7229de22a3 (diff)
Fix breadcrumb in move or copy file dialog
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'core/src')
-rw-r--r--core/src/OC/dialogs.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js
index bf6a92aef8b..37d8e0724f2 100644
--- a/core/src/OC/dialogs.js
+++ b/core/src/OC/dialogs.js
@@ -1218,8 +1218,12 @@ const Dialogs = {
* fills the tree list with directories
*/
_fillSlug: function() {
+ var addButton = this.$dirTree.find('.actions.creatable').detach()
this.$dirTree.empty()
var self = this
+
+ self.$dirTree.append(addButton)
+
var dir
var path = this.$filePicker.data('path')
var $template = $('<div data-dir="{dir}"><a>{name}</a></div>').addClass('crumb')
@@ -1236,10 +1240,12 @@ const Dialogs = {
}))
})
}
+
$template.octemplate({
dir: '',
name: '' // Ugly but works ;)
}, { escapeFunction: null }).prependTo(this.$dirTree)
+
},
/**
* handle selection made in the tree list