]> git.mxchange.org Git - friendica-addons.git/commitdiff
snautofollow: inflate/deflate settings
authorMichael Vogel <icarus@dabo.de>
Sat, 30 Nov 2013 20:24:02 +0000 (21:24 +0100)
committerMichael Vogel <icarus@dabo.de>
Sat, 30 Nov 2013 20:24:02 +0000 (21:24 +0100)
snautofollow/snautofollow.php

index 2efc2128c021904d9562ae6fa1bfce55fbe4c955..6694c38f7452cc31bf6e288da02aa22bd75a1d6a 100644 (file)
@@ -49,11 +49,17 @@ function snautofollow_settings(&$a,&$s) {
 
        $snautofollow_checked = (($snautofollow) ? ' checked="checked" ' : '');
 
-       
+
        /* Add some HTML to the existing form */
 
-       $s .= '<div class="settings-block">';
+       $s .= '<span id="settings_snautofollow_inflated" class="settings-block fakelink" style="display: block;" onclick="openClose(\'settings_snautofollow_expanded\'); openClose(\'settings_snautofollow_inflated\');">';
+       $s .= '<h3>' . t('StatusNet AutoFollow Settings') . '</h3>';
+       $s .= '</span>';
+       $s .= '<div id="settings_snautofollow_expanded" class="settings-block" style="display: none;">';
+       $s .= '<span class="fakelink" onclick="openClose(\'settings_snautofollow_expanded\'); openClose(\'settings_snautofollow_inflated\');">';
        $s .= '<h3>' . t('StatusNet AutoFollow Settings') . '</h3>';
+       $s .= '</span>';
+
        $s .= '<div id="snautofollow-wrapper">';
        $s .= '<label id="snautofollow-label" for="snautofollow-checkbox">' . t('Automatically follow any StatusNet followers/mentioners') . '</label>';
        $s .= '<input id="snautofollow-checkbox" type="checkbox" name="snautofollow" value="1" ' . $snautofollow_checked . '/>';