diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-02-22 22:20:46 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-02-22 22:20:46 +0100 |
commit | 814bc2fd2bef739938716ae840a4db0de502422a (patch) | |
tree | 99f025e7eac4b6a2452e4790ef77b9bce12f71ba /apps/files_encryption/js | |
parent | 2e05bd69f5b39f449f7e7475d81c27ee2b1f946a (diff) | |
download | nextcloud-server-814bc2fd2bef739938716ae840a4db0de502422a.tar.gz nextcloud-server-814bc2fd2bef739938716ae840a4db0de502422a.zip |
make encryption filetype blacklist configurable
Diffstat (limited to 'apps/files_encryption/js')
-rw-r--r-- | apps/files_encryption/js/settings.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/apps/files_encryption/js/settings.js b/apps/files_encryption/js/settings.js new file mode 100644 index 00000000000..adbf0c87245 --- /dev/null +++ b/apps/files_encryption/js/settings.js @@ -0,0 +1,19 @@ +/** + * 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); + } +})
\ No newline at end of file |