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
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/OC/dialogs.js')
-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