]> git.mxchange.org Git - friendica.git/commitdiff
disable network toggles when ACL's are entered
authorFriendika <info@friendika.com>
Fri, 11 Feb 2011 12:32:38 +0000 (04:32 -0800)
committerFriendika <info@friendika.com>
Fri, 11 Feb 2011 12:32:38 +0000 (04:32 -0800)
addon/facebook/facebook.php
addon/twitter/twitter.php
view/de/jot-header.tpl
view/en/jot-header.tpl
view/fr/jot-header.tpl
view/it/jot-header.tpl

index 2a5715b2e03b2c3933195a62fddbc9e832180f6f..93e7962c331677e1a6cbe92601663e2f2787e854 100644 (file)
@@ -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>';     
        }
 }
index 6a0365e09df962369621f5cdc38585f73560f4e7..0b706f9b18aeb6d181bbc9c0c0d3c82ff157d99e 100644 (file)
@@ -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>';      
        }
 
index 41abdf0f3657969958e759bee4080bbc4ff8bc15..58403f1ba65739d9268eb5349adf3cd9a25f9e53 100644 (file)
@@ -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');
 
index d0c956a020d63abcc62373eb6b68654821a0206e..fe818410e5e3319e6c03af968f2dcd318ecd09b1 100644 (file)
@@ -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');
 
index d0c956a020d63abcc62373eb6b68654821a0206e..ff7e543a5ed9928d38bfb45f931e92085aeac3ad 100644 (file)
@@ -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');
 
        });
index e55a357e8c7a78beaaff7657ae85d16b9c578128..117cd1651195a4ce140bb82ce0aa6fd41bf6d46b 100644 (file)
@@ -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');