diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-08-20 11:58:18 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-08-20 11:58:18 +0200 |
commit | 28e58594bad2160d8c6ba92a1cbeaad3a2890192 (patch) | |
tree | 915b27652a4fa8603803d2bf7919c3d2302de8be /apps/files_external | |
parent | 06d8edd9637f59f914ec7f3d7f6846f3cbe88eaf (diff) | |
parent | dc335ba5a9b9c9f04b2b944b82729ffa067e724d (diff) | |
download | nextcloud-server-28e58594bad2160d8c6ba92a1cbeaad3a2890192.tar.gz nextcloud-server-28e58594bad2160d8c6ba92a1cbeaad3a2890192.zip |
Merge pull request #18437 from owncloud/ext-auth-trigger
Trigger storage recheck on auth mechanism change
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/js/settings.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js index 6bf0143f1c0..d3e20e38445 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -704,6 +704,7 @@ MountConfigListView.prototype = { var $tr = $target.closest('tr'); $el.find('tbody').append($tr.clone()); $el.find('tbody tr').last().find('.mountPoint input').val(''); + $tr.data('constructing', true); var selected = $target.find('option:selected').text(); var backend = $target.val(); $tr.find('.backend').text(selected); @@ -739,6 +740,9 @@ MountConfigListView.prototype = { $tr.removeAttr('id'); $target.remove(); addSelect2($tr.find('.applicableUsers'), this._userListLimit); + + $tr.removeData('constructing'); + this.saveStorageConfig($tr); }, _onSelectAuthMechanism: function(event) { @@ -753,6 +757,11 @@ MountConfigListView.prototype = { $.each(authMechanismConfiguration['configuration'], _.partial( this.writeParameterInput, $td, _, _, ['auth-param'] )); + + if ($tr.data('constructing') !== true) { + // row is ready, trigger recheck + this.saveStorageConfig($tr); + } }, writeParameterInput: function($td, parameter, placeholder, classes) { |