diff options
author | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2015-03-20 09:48:14 +0000 |
---|---|---|
committer | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2015-03-20 09:48:14 +0000 |
commit | c37913b1d506c0a4afe035de0e4c4fd5a80bb6ea (patch) | |
tree | 8132907bafa51885f607bdade071e800ae9b1025 /apps/files_external/js | |
parent | e5e30924b14c22cc68b2fe0c47144f06c4a997aa (diff) | |
download | nextcloud-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.js | 6 |
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'); |