2012-02-23 01:20:46 +04:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2011, Robin Appelman <icewind1991@gmail.com>
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or later.
|
|
|
|
* See the COPYING-README file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
$('#encryption_blacklist').multiSelect({
|
|
|
|
oncheck:blackListChange,
|
|
|
|
onuncheck:blackListChange,
|
|
|
|
createText:'...',
|
|
|
|
});
|
|
|
|
|
|
|
|
function blackListChange(){
|
|
|
|
var blackList=$('#encryption_blacklist').val().join(',');
|
|
|
|
OC.AppConfig.setValue('files_encryption','type_blacklist',blackList);
|
|
|
|
}
|
2012-04-19 18:36:07 +04:00
|
|
|
|
2012-07-10 18:51:57 +04:00
|
|
|
$('#enable_encryption').change(function(){
|
|
|
|
var checked=$('#enable_encryption').is(':checked');
|
2012-04-19 18:36:07 +04:00
|
|
|
OC.AppConfig.setValue('files_encryption','enable_encryption',(checked)?'true':'false');
|
|
|
|
})
|
2012-02-23 01:20:46 +04:00
|
|
|
})
|