} );
$( '.prefs-tab .expand-textarea' ).show().click( function () {
- $( this ).hide().nextAll( 'textarea, input[type=submit]' )
+ $( this ).hide().nextAll( 'textarea, input[type=submit], a' )
.animate( { height: 'show', queue: false } )
.animate( { opacity: 1 } );
return false;
} ).nextAll( 'textarea, input[type=submit]' ).hide().css( { opacity: 0 } );
+ $( '.prefs-tab .collapse-textarea' ).hide().click( function () {
+ $( this ).show().prevAll( 'textarea, input[type=submit]' )
+ .animate( { height: 'hide', queue: false } )
+ .animate( { opacity: 0 } );
+
+ $( this ).hide().prevAll( 'a' ).show();
+ return false;
+ });
+
+
$("h3").attr("class","expanded").attr("title",MSG_CLICK_TO_EXPAND);
var collapsible = $(".collapsed,.expanded");
<div id="bd">
<div id="yui-main">
- <div class="yui-b">
+ <div class="yui-b">
[% IF ( jump_not_found ) %]
<h2>System preferences</h2>
[% ELSE %]
<a class="expand-textarea" style="display: none" href="#">Click to Edit</a>
<textarea name="pref_[% CHUNK.name %]" id="pref_[% CHUNK.name %]" class="preference preference-[% CHUNK.class or "short" %]" rows="10" cols="40">[% CHUNK.value %]</textarea>
+ <a class="collapse-textarea" style="display:none" href="#">Click to collapse</br></a>
[% END %]
[% ELSIF ( CHUNK.type_languages ) %]
<dl>