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

index b16dedf846144dcbd350b8dbe623cb1fb4ac35b6..53b6433cce4dabb4957eb7793b66a8b4b3cdf937 100755 (executable)
@@ -278,8 +278,13 @@ function statusnet_settings(&$a,&$s) {
        $shorteningenabled = get_pconfig(local_user(),'statusnet','intelligent_shortening');
        $shorteningchecked = (($shorteningenabled) ? ' checked="checked" ' : '');
 
-       $s .= '<div class="settings-block">';
+       $s .= '<span id="settings_statusnet_inflated" class="settings-block fakelink" style="display: block;" onclick="openClose(\'settings_statusnet_expanded\'); openClose(\'settings_statusnet_inflated\');">';
        $s .= '<h3>'. t('StatusNet Posting Settings').'</h3>';
+       $s .= '</span>';
+       $s .= '<div id="settings_statusnet_expanded" class="settings-block" style="display: none;">';
+       $s .= '<span class="fakelink" onclick="openClose(\'settings_statusnet_expanded\'); openClose(\'settings_statusnet_inflated\');">';
+       $s .= '<h3>'. t('StatusNet Posting Settings').'</h3>';
+       $s .= '</span>';
 
        if ( (!$ckey) && (!$csecret) ) {
                /***