summaryrefslogtreecommitdiffstats
path: root/apps/files_external/js
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@karoshi.org.uk>2015-03-20 09:48:14 +0000
committerRobin McCorkell <rmccorkell@karoshi.org.uk>2015-03-20 09:48:14 +0000
commitc37913b1d506c0a4afe035de0e4c4fd5a80bb6ea (patch)
tree8132907bafa51885f607bdade071e800ae9b1025 /apps/files_external/js
parente5e30924b14c22cc68b2fe0c47144f06c4a997aa (diff)
downloadnextcloud-server-c37913b1d506c0a4afe035de0e4c4fd5a80bb6ea.tar.gz
nextcloud-server-c37913b1d506c0a4afe035de0e4c4fd5a80bb6ea.zip
Introduce async status checking
Diffstat (limited to 'apps/files_external/js')
-rw-r--r--apps/files_external/js/settings.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index ef64d087884..9e4d026980f 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -437,6 +437,7 @@ MountConfigListView.prototype = {
* @param {int} [options.userListLimit] page size in applicable users dropdown
*/
initialize: function($el, options) {
+ var self = this;
this.$el = $el;
this._isPersonal = ($el.data('admin') !== true);
if (this._isPersonal) {
@@ -474,6 +475,10 @@ MountConfigListView.prototype = {
addSelect2(this.$el.find('tr:not(#addMountPoint) .applicableUsers'), this._userListLimit);
+ this.$el.find('tr:not(#addMountPoint)').each(function(i, tr) {
+ self.recheckStorageConfig($(tr));
+ });
+
this._initEvents();
},
@@ -537,7 +542,6 @@ MountConfigListView.prototype = {
$tr.find('.mountPoint input').val(this._suggestMountPoint(selected));
}
$tr.addClass(backendClass);
- $tr.find('.status').append('<span></span>');
$tr.find('.backend').data('class', backendClass);
var configurations = this._allBackends;
var $td = $tr.find('td.configuration');