aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_chat.js
diff options
context:
space:
mode:
authormarijus <mario@localhost.localdomain>2014-01-30 09:57:31 +0100
committermarijus <mario@localhost.localdomain>2014-01-30 09:57:31 +0100
commit91e9e3be91e9fd6ba73085066d34a4c6daf27ee9 (patch)
treeaa53cc5185c5b1a58f0bb8e30609da6bcdc0b5ad /view/js/mod_chat.js
parent5e952e3738293ce24309fddaff04350e735e449a (diff)
parent080928f214c9f83879f1578e05baa6032fa2b7b8 (diff)
downloadvolse-hubzilla-91e9e3be91e9fd6ba73085066d34a4c6daf27ee9.tar.gz
volse-hubzilla-91e9e3be91e9fd6ba73085066d34a4c6daf27ee9.tar.bz2
volse-hubzilla-91e9e3be91e9fd6ba73085066d34a4c6daf27ee9.zip
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'view/js/mod_chat.js')
-rw-r--r--view/js/mod_chat.js16
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');
+});