code cleanup and TODOs added
This commit is contained in:
parent
bed05f0302
commit
a0b2474019
|
@ -4,6 +4,8 @@
|
|||
* This file is licensed under the Affero General Public License version 3 or later.
|
||||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
//TODO: Handle switch between client and server side encryption
|
||||
|
||||
OCP\JSON::checkAppEnabled('files_encryption');
|
||||
OCP\JSON::checkLoggedIn();
|
|
@ -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 });
|
||||
})
|
||||
})
|
|
@ -17,6 +17,7 @@ $(document).ready(function(){
|
|||
OC.AppConfig.setValue('files_encryption','type_blacklist',blackList);
|
||||
}
|
||||
|
||||
//TODO: Handle switch between client and server side encryption
|
||||
$('input[name=encryption_mode]').change(function(){
|
||||
var client=$('input[value="client"]:checked').val()
|
||||
,server=$('input[value="server"]:checked').val()
|
||||
|
|
Loading…
Reference in New Issue