diff options
author | Christian Vogeley <christian.vogeley@hotmail.de> | 2014-03-15 21:54:10 +0100 |
---|---|---|
committer | Christian Vogeley <christian.vogeley@hotmail.de> | 2014-03-15 21:54:10 +0100 |
commit | 521b091779ddb2a4ca58c28af9312cb5bcf2dd9f (patch) | |
tree | 27d854c5b8668470a3005425e428b8c115550aad /view/js/mod_filestorage.js | |
parent | f0736fc955e69d4650f95dc937f26be222967199 (diff) | |
parent | 3cb179aff19d803b91261e410c50b36e4bae1246 (diff) | |
download | volse-hubzilla-521b091779ddb2a4ca58c28af9312cb5bcf2dd9f.tar.gz volse-hubzilla-521b091779ddb2a4ca58c28af9312cb5bcf2dd9f.tar.bz2 volse-hubzilla-521b091779ddb2a4ca58c28af9312cb5bcf2dd9f.zip |
merge
Diffstat (limited to 'view/js/mod_filestorage.js')
-rw-r--r-- | view/js/mod_filestorage.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/view/js/mod_filestorage.js b/view/js/mod_filestorage.js new file mode 100644 index 000000000..82957ae44 --- /dev/null +++ b/view/js/mod_filestorage.js @@ -0,0 +1,16 @@ +$(document).ready(function() { + + $('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() { + var selstr; + $('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() { + selstr = $(this).text(); + $('#jot-perms-icon').removeClass('unlock').addClass('lock'); + $('#jot-public').hide(); + }); + if(selstr == null) { + $('#jot-perms-icon').removeClass('lock').addClass('unlock'); + $('#jot-public').show(); + } + + }).trigger('change'); +}); |