summaryrefslogtreecommitdiffstats
path: root/core/js/oc-dialogs.js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2015-10-19 23:43:12 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2015-10-19 23:43:12 +0200
commit9778094a25c46f4fe8dcf0afd6f9afd9be0ef915 (patch)
treef6cbe66b3092433d441af74feacf2e65f21bada5 /core/js/oc-dialogs.js
parent2895c912910a5a24ce6fae5d487ff8136c7a5042 (diff)
downloadnextcloud-server-9778094a25c46f4fe8dcf0afd6f9afd9be0ef915.tar.gz
nextcloud-server-9778094a25c46f4fe8dcf0afd6f9afd9be0ef915.zip
fix filepicker loading spinner
Diffstat (limited to 'core/js/oc-dialogs.js')
-rw-r--r--core/js/oc-dialogs.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index 67860c0c7a4..4448b813021 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -171,7 +171,6 @@ var OCdialogs = {
$('body').append(self.$filePicker);
-
self.$filePicker.ready(function() {
self.$filelist = self.$filePicker.find('.filelist');
self.$dirTree = self.$filePicker.find('.dirtree');
@@ -738,9 +737,10 @@ var OCdialogs = {
var dirs = [];
var others = [];
var self = this;
- this.$filelist.empty().addClass('loading');
+ this.$filelist.empty().addClass('icon-loading');
this.$filePicker.data('path', dir);
$.when(this._getFileList(dir, this.$filePicker.data('mimetype'))).then(function(response) {
+
$.each(response.data.files, function(index, file) {
if (file.type === 'dir') {
dirs.push(file);
@@ -772,7 +772,7 @@ var OCdialogs = {
self.$filelist.append($li);
});
- self.$filelist.removeClass('loading');
+ self.$filelist.removeClass('icon-loading');
if (!OC.Util.hasSVGSupport()) {
OC.Util.replaceSVG(self.$filePicker.find('.dirtree'));
}