summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/federationscopemenu.js2
-rw-r--r--settings/js/federationsettingsview.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/settings/js/federationscopemenu.js b/settings/js/federationscopemenu.js
index 066f648c104..0862556a2c3 100644
--- a/settings/js/federationscopemenu.js
+++ b/settings/js/federationscopemenu.js
@@ -113,7 +113,7 @@
this._context = context;
var currentlyActiveValue = $('#'+context.target.closest('form').id).find('.icon-checkmark > input')[0].value;
- for(var i = 0 in this._scopes) {
+ for(var i in this._scopes) {
this._scopes[i].active = false;
}
diff --git a/settings/js/federationsettingsview.js b/settings/js/federationsettingsview.js
index 7a629fc2ab6..b71b450546d 100644
--- a/settings/js/federationsettingsview.js
+++ b/settings/js/federationsettingsview.js
@@ -137,7 +137,7 @@
this._config.set(field + 'Scope', scope);
- $('#' + field).parent().find('span > input').val(scope);
+ $('#' + field + 'scope').val(scope);
// TODO: user loading/success feedback
this._config.save();