summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/js/settings-personal.js
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-08-03 12:21:49 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-08-03 12:21:49 +0200
commita0b2474019e33fa7737ce6d24e76be34dba52a2d (patch)
treeadd8eeffa18e659acaf173cd608f65e3d776c424 /apps/files_encryption/js/settings-personal.js
parentbed05f030280087ae73f78acd38c1b797f9776c0 (diff)
downloadnextcloud-server-a0b2474019e33fa7737ce6d24e76be34dba52a2d.tar.gz
nextcloud-server-a0b2474019e33fa7737ce6d24e76be34dba52a2d.zip
code cleanup and TODOs added
Diffstat (limited to 'apps/files_encryption/js/settings-personal.js')
-rw-r--r--apps/files_encryption/js/settings-personal.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files_encryption/js/settings-personal.js b/apps/files_encryption/js/settings-personal.js
index 7ca2ce56971..6d3c9f9a486 100644
--- a/apps/files_encryption/js/settings-personal.js
+++ b/apps/files_encryption/js/settings-personal.js
@@ -11,10 +11,11 @@ $(document).ready(function(){
,user=$('input[value="user"]:checked').val()
,none=$('input[value="none"]:checked').val()
if (client)
- $.post(OC.filePath('files_encryption', 'ajax', 'changemode.php'), { mode: 'client' });
+ var encmode= 'client';
else if (server)
- $.post(OC.filePath('files_encryption', 'ajax', 'changemode.php'), { mode: 'server' });
+ var encmode = 'server';
else
- $.post(OC.filePath('files_encryption', 'ajax', 'changemode.php'), { mode: 'none' });
+ var encmode = 'none';
+ $.post(OC.filePath('files_encryption', 'ajax', 'mode.php'), { mode: encmode });
})
}) \ No newline at end of file