diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-03-05 14:41:36 +0100 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-03-05 14:41:36 +0100 |
commit | bd866427471ec178602959afdce8851979501c45 (patch) | |
tree | d1d059b9ce00ca7b9b3409bf253cb4ebc29c4f62 /apps/files_external/js | |
parent | 36d7c0b6a7ed79ec1c578476a797648715b3b000 (diff) | |
parent | 932c4ee927f278f4ef5275a9582bca8822310738 (diff) | |
download | nextcloud-server-bd866427471ec178602959afdce8851979501c45.tar.gz nextcloud-server-bd866427471ec178602959afdce8851979501c45.zip |
Merge pull request #7261 from owncloud/issue/6793
Allow admins to disable certain external storages for users
Diffstat (limited to 'apps/files_external/js')
-rw-r--r-- | apps/files_external/js/settings.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js index 895f97bd2c3..dbc9f548292 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -302,13 +302,23 @@ $(document).ready(function() { }); $('#allowUserMounting').bind('change', function() { + OC.msg.startSaving('#userMountingMsg'); if (this.checked) { OC.AppConfig.setValue('files_external', 'allow_user_mounting', 'yes'); + $('#userMountingBackups').removeClass('hidden'); } else { OC.AppConfig.setValue('files_external', 'allow_user_mounting', 'no'); + $('#userMountingBackups').addClass('hidden'); } + OC.msg.finishedSaving('#userMountingMsg', {status: 'success', data: {message: t('settings', 'Saved')}}); }); + $('input[name="allowUserMountingBackends\\[\\]"]').bind('change', function() { + OC.msg.startSaving('#userMountingMsg'); + var user_mounting_backends = $('input[name="allowUserMountingBackends\\[\\]"]:checked').map(function(){return $(this).val();}).get(); + OC.AppConfig.setValue('files_external', 'user_mounting_backends', user_mounting_backends.join()); + OC.msg.finishedSaving('#userMountingMsg', {status: 'success', data: {message: t('settings', 'Saved')}}); + }); }); })(); |