From b7cb4f5a635f62d83c81e60bebd8c8a2440067d5 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Fri, 27 Jun 2014 18:25:56 +0200 Subject: [PATCH] fix trailing whitespace noted by Scrutinizer --- apps/files_encryption/js/settings-personal.js | 8 ++++---- apps/files_sharing/tests/js/appSpec.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/files_encryption/js/settings-personal.js b/apps/files_encryption/js/settings-personal.js index e16519c3c9..f857c2c9f0 100644 --- a/apps/files_encryption/js/settings-personal.js +++ b/apps/files_encryption/js/settings-personal.js @@ -24,7 +24,7 @@ function updatePrivateKeyPasswd() { $(document).ready(function(){ // Trigger ajax on recoveryAdmin status change - $( 'input:radio[name="userEnableRecovery"]' ).change( + $( 'input:radio[name="userEnableRecovery"]' ).change( function() { // Hide feedback messages in case they're already visible @@ -33,7 +33,7 @@ $(document).ready(function(){ var recoveryStatus = $( this ).val(); - $.post( + $.post( OC.filePath( 'files_encryption', 'ajax', 'userrecovery.php' ) , { userEnableRecovery: recoveryStatus } , function( data ) { @@ -49,7 +49,7 @@ $(document).ready(function(){ } ); - $("#encryptAll").click( + $("#encryptAll").click( function(){ // Hide feedback messages in case they're already visible @@ -59,7 +59,7 @@ $(document).ready(function(){ var userPassword = $( '#userPassword' ).val(); var encryptAll = $( '#encryptAll' ).val(); - $.post( + $.post( OC.filePath( 'files_encryption', 'ajax', 'encryptall.php' ) , { encryptAll: encryptAll, userPassword: userPassword } , function( data ) { diff --git a/apps/files_sharing/tests/js/appSpec.js b/apps/files_sharing/tests/js/appSpec.js index d0480ad1aa..5fb269da75 100644 --- a/apps/files_sharing/tests/js/appSpec.js +++ b/apps/files_sharing/tests/js/appSpec.js @@ -55,7 +55,7 @@ describe('OCA.Sharing.App tests', function() { describe('initialization', function() { it('inits sharing-in list on show', function() { - expect(fileListIn._sharedWithUser).toEqual(true); + expect(fileListIn._sharedWithUser).toEqual(true); }); it('inits sharing-out list on show', function() { expect(fileListOut._sharedWithUser).toBeFalsy();