diff options
author | Michael Meer <michael@meer.name> | 2014-01-30 10:21:21 +0100 |
---|---|---|
committer | Michael Meer <michael@meer.name> | 2014-01-30 10:21:21 +0100 |
commit | e5d1e20ff50f49909e7df6fe7efe0d7488e58eaa (patch) | |
tree | a3e0b7d7e1f9a4a8a2af39d5c8fad8d62f0411a3 /view/js/mod_chat.js | |
parent | ef97a454bbccbd9f7e0e63180c365ed3227fe42c (diff) | |
parent | 6c6a9b963a925d33b2cc436d877a4edc5f0d59b1 (diff) | |
download | volse-hubzilla-e5d1e20ff50f49909e7df6fe7efe0d7488e58eaa.tar.gz volse-hubzilla-e5d1e20ff50f49909e7df6fe7efe0d7488e58eaa.tar.bz2 volse-hubzilla-e5d1e20ff50f49909e7df6fe7efe0d7488e58eaa.zip |
Merge branch 'master' of https://github.com/friendica/red
to be in sync with master repro
Diffstat (limited to 'view/js/mod_chat.js')
-rw-r--r-- | view/js/mod_chat.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/view/js/mod_chat.js b/view/js/mod_chat.js new file mode 100644 index 000000000..82957ae44 --- /dev/null +++ b/view/js/mod_chat.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'); +}); |