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(){
|
2013-03-30 00:11:29 +04:00
|
|
|
// Trigger ajax on filetype blacklist change
|
2012-02-23 01:20:46 +04:00
|
|
|
$('#encryption_blacklist').multiSelect({
|
|
|
|
oncheck:blackListChange,
|
|
|
|
onuncheck:blackListChange,
|
2013-02-09 21:01:38 +04:00
|
|
|
createText:'...'
|
2012-02-23 01:20:46 +04:00
|
|
|
});
|
|
|
|
|
2013-03-30 00:11:29 +04:00
|
|
|
// Trigger ajax on recoveryAdmin status change
|
|
|
|
$( 'input:radio[name="adminEnableRecovery"]' ).change(
|
|
|
|
function() {
|
|
|
|
$.post(
|
|
|
|
'../ajax/adminrecovery.php'
|
|
|
|
, $( this ).val()
|
|
|
|
, function( data ) {
|
|
|
|
// TODO: provide user with feedback of outcome
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2012-02-23 01:20:46 +04:00
|
|
|
function blackListChange(){
|
|
|
|
var blackList=$('#encryption_blacklist').val().join(',');
|
|
|
|
OC.AppConfig.setValue('files_encryption','type_blacklist',blackList);
|
|
|
|
}
|
|
|
|
})
|