disable network toggles when ACL's are entered
This commit is contained in:
parent
0bfe63e7d8
commit
5e02519a13
|
@ -143,7 +143,7 @@ function facebook_jot_nets(&$a,&$b) {
|
|||
if(intval($fb_post) == 1) {
|
||||
$fb_defpost = get_pconfig(local_user(),'facebook','post_by_default');
|
||||
$selected = ((intval($fb_defpost == 1)) ? ' selected="selected" ' : '');
|
||||
$b .= '<div class="profile-jot-net"><input type="checkbox" name="facebook_enable" $selected value="1" /> '
|
||||
$b .= '<div class="profile-jot-net"><input type="checkbox" name="facebook_enable"' . $selected . 'value="1" /> '
|
||||
. t('Post to Facebook') . '</div>';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@ function twitter_jot_nets(&$a,&$b) {
|
|||
if(intval($tw_post) == 1) {
|
||||
$tw_defpost = get_pconfig(local_user(),'twitter','post_by_default');
|
||||
$selected = ((intval($tw_defpost == 1)) ? ' selected="selected" ' : '');
|
||||
$b .= '<div class="profile-jot-net"><input type="checkbox" name="twitter_enable" $selected value="1" /> '
|
||||
$b .= '<div class="profile-jot-net"><input type="checkbox" name="twitter_enable"' . $selected . 'value="1" /> '
|
||||
. t('Post to Twitter') . '</div>';
|
||||
}
|
||||
|
||||
|
|
|
@ -75,10 +75,12 @@ tinyMCE.init({
|
|||
$('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
|
||||
selstr = $(this).text();
|
||||
$('#profile-jot-perms img').attr('src', 'images/lock_icon.gif');
|
||||
|
||||
$('.profile-jot-net input').attr('disabled', 'disabled');
|
||||
});
|
||||
if(selstr == null)
|
||||
if(selstr == null) {
|
||||
$('#profile-jot-perms img').attr('src', 'images/unlock_icon.gif');
|
||||
$('.profile-jot-net input').attr('disabled', false);
|
||||
}
|
||||
|
||||
}).trigger('change');
|
||||
|
||||
|
|
|
@ -75,10 +75,12 @@ tinyMCE.init({
|
|||
$('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
|
||||
selstr = $(this).text();
|
||||
$('#profile-jot-perms img').attr('src', 'images/lock_icon.gif');
|
||||
|
||||
$('.profile-jot-net input').attr('disabled', 'disabled');
|
||||
});
|
||||
if(selstr == null)
|
||||
if(selstr == null) {
|
||||
$('#profile-jot-perms img').attr('src', 'images/unlock_icon.gif');
|
||||
$('.profile-jot-net input').attr('disabled', false);
|
||||
}
|
||||
|
||||
}).trigger('change');
|
||||
|
||||
|
|
|
@ -75,11 +75,12 @@ tinyMCE.init({
|
|||
$('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
|
||||
selstr = $(this).text();
|
||||
$('#profile-jot-perms img').attr('src', 'images/lock_icon.gif');
|
||||
|
||||
$('.profile-jot-net input').attr('disabled', 'disabled');
|
||||
});
|
||||
if(selstr == null)
|
||||
if(selstr == null) {
|
||||
$('#profile-jot-perms img').attr('src', 'images/unlock_icon.gif');
|
||||
|
||||
$('.profile-jot-net input').attr('disabled', false);
|
||||
}
|
||||
}).trigger('change');
|
||||
|
||||
});
|
||||
|
|
|
@ -75,10 +75,12 @@ tinyMCE.init({
|
|||
$('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
|
||||
selstr = $(this).text();
|
||||
$('#profile-jot-perms img').attr('src', 'images/lock_icon.gif');
|
||||
|
||||
$('.profile-jot-net input').attr('disabled', 'disabled');
|
||||
});
|
||||
if(selstr == null)
|
||||
if(selstr == null) {
|
||||
$('#profile-jot-perms img').attr('src', 'images/unlock_icon.gif');
|
||||
$('.profile-jot-net input').attr('disabled', false);
|
||||
}
|
||||
|
||||
}).trigger('change');
|
||||
|
||||
|
|
Loading…
Reference in a new issue