aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-06-16 11:35:48 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-06-16 11:35:48 +0200
commit0a2c676cda48aee0a9e788cae5fafeee5bdf0dec (patch)
tree26292a8647aaf736cd1b963d9fc44438a00c9b36 /apps/files_external/js
parent78b6f595232096a514f7f40281d53ec7aabc772a (diff)
downloadnextcloud-server-0a2c676cda48aee0a9e788cae5fafeee5bdf0dec.tar.gz
nextcloud-server-0a2c676cda48aee0a9e788cae5fafeee5bdf0dec.zip
fix camelCase and avoiud re-wrapping $()
Diffstat (limited to 'apps/files_external/js')
-rw-r--r--apps/files_external/js/settings.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index e5cb373a5b7..348fecf0648 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -312,7 +312,7 @@ $(document).ready(function() {
OC.AppConfig.setValue('files_external', 'allow_user_mounting', 'yes');
$('input[name="allowUserMountingBackends\\[\\]"]').prop('checked', true);
$('#userMountingBackends').removeClass('hidden');
- $($('input[name="allowUserMountingBackends\\[\\]"]')[0]).trigger('change');
+ $('input[name="allowUserMountingBackends\\[\\]"]').eq(0).trigger('change');
} else {
OC.AppConfig.setValue('files_external', 'allow_user_mounting', 'no');
$('#userMountingBackends').addClass('hidden');
@@ -322,12 +322,12 @@ $(document).ready(function() {
$('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());
+ var userMountingBackends = $('input[name="allowUserMountingBackends\\[\\]"]:checked').map(function(){return $(this).val();}).get();
+ OC.AppConfig.setValue('files_external', 'user_mounting_backends', userMountingBackends.join());
OC.msg.finishedSaving('#userMountingMsg', {status: 'success', data: {message: t('settings', 'Saved')}});
// disable allowUserMounting
- if(user_mounting_backends.length === 0) {
+ if(userMountingBackends.length === 0) {
$('#allowUserMounting').prop('checked', false);
$('#allowUserMounting').trigger('change');