summaryrefslogtreecommitdiffstats
path: root/apps/files_external/js/oauth1.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/js/oauth1.js')
-rw-r--r--apps/files_external/js/oauth1.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/js/oauth1.js b/apps/files_external/js/oauth1.js
index e2ba25ebf8e..8c64f1189f4 100644
--- a/apps/files_external/js/oauth1.js
+++ b/apps/files_external/js/oauth1.js
@@ -13,7 +13,7 @@ $(document).ready(function() {
onCompletion.then(function() {
var configured = $tr.find('[data-parameter="configured"]');
if ($(configured).val() == 'true') {
- $tr.find('.configuration input').attr('disabled', 'disabled');
+ $tr.find('.configuration input.auth-param').attr('disabled', 'disabled');
$tr.find('.configuration').append('<span id="access" style="padding-left:0.5em;">'+t('files_external', 'Access granted')+'</span>');
} else {
var app_key = $tr.find('.configuration [data-parameter="app_key"]').val();
@@ -33,7 +33,7 @@ $(document).ready(function() {
$(configured).val('true');
OCA.External.Settings.mountConfig.saveStorageConfig($tr, function(status) {
if (status) {
- $tr.find('.configuration input').attr('disabled', 'disabled');
+ $tr.find('.configuration input.auth-param').attr('disabled', 'disabled');
$tr.find('.configuration').append('<span id="access" style="padding-left:0.5em;">'+t('files_external', 'Access granted')+'</span>');
}
});