aboutsummaryrefslogtreecommitdiffstats
path: root/settings/js/admin.js
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2014-10-30 17:03:03 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2014-10-30 17:03:03 +0100
commit108cdeb8924bdeeb17d1d36c6565fd47f75d84cc (patch)
tree2130c51988e2412d670885b9dd41bad00d5b620f /settings/js/admin.js
parent6db69c5d05cc253e5373a6dc0fc99bfb6ba6a58c (diff)
parent1dfabfb4918e356e7971db00e10325f5e1579daa (diff)
downloadnextcloud-server-108cdeb8924bdeeb17d1d36c6565fd47f75d84cc.tar.gz
nextcloud-server-108cdeb8924bdeeb17d1d36c6565fd47f75d84cc.zip
Merge pull request #11867 from owncloud/settings-sidebar-admin
introduce sidebar for admin page
Diffstat (limited to 'settings/js/admin.js')
-rw-r--r--settings/js/admin.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js
index 09e8a1d6916..e3a092f71b0 100644
--- a/settings/js/admin.js
+++ b/settings/js/admin.js
@@ -3,7 +3,8 @@ $(document).ready(function(){
// Hack to add a trusted domain
if (params.trustDomain) {
- OC.dialogs.confirm(t('core', 'Are you really sure you want add "{domain}" as trusted domain?', {domain: params.trustDomain}),
+ OC.dialogs.confirm(t('core', 'Are you really sure you want add "{domain}" as trusted domain?',
+ {domain: params.trustDomain}),
t('core', 'Add trusted domain'), function(answer) {
if(answer) {
$.ajax({
@@ -52,14 +53,13 @@ $(document).ready(function(){
});
$('#shareAPI input:not(#excludedGroups)').change(function() {
+ var value = $(this).val();
if ($(this).attr('type') === 'checkbox') {
if (this.checked) {
- var value = 'yes';
+ value = 'yes';
} else {
- var value = 'no';
+ value = 'no';
}
- } else {
- var value = $(this).val();
}
OC.AppConfig.setValue('core', $(this).attr('name'), value);
});