View | Details | Raw Unified | Return to bug 15617
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js (-1 / +11 lines)
Lines 96-107 $( document ).ready( function () { Link Here
96
    } );
96
    } );
97
97
98
    $( '.prefs-tab .expand-textarea' ).show().click( function () {
98
    $( '.prefs-tab .expand-textarea' ).show().click( function () {
99
        $( this ).hide().nextAll( 'textarea, input[type=submit]' )
99
        $( this ).hide().nextAll( 'textarea, input[type=submit], a' )
100
            .animate( { height: 'show', queue: false } )
100
            .animate( { height: 'show', queue: false } )
101
            .animate( { opacity: 1 } );
101
            .animate( { opacity: 1 } );
102
102
103
        return false;
103
        return false;
104
    } ).nextAll( 'textarea, input[type=submit]' ).hide().css( { opacity: 0 } );
104
    } ).nextAll( 'textarea, input[type=submit]' ).hide().css( { opacity: 0 } );
105
    
106
    $( '.prefs-tab .collapse-textarea' ).hide().click( function () {
107
        $( this ).show().prevAll( 'textarea, input[type=submit]' )
108
            .animate( { height: 'hide', queue: false } )
109
            .animate( { opacity: 0 } );
110
111
        $( this ).hide().prevAll( 'a' ).show();
112
        return false;
113
    });
114
105
115
106
    $("h3").attr("class","expanded").attr("title",MSG_CLICK_TO_EXPAND);
116
    $("h3").attr("class","expanded").attr("title",MSG_CLICK_TO_EXPAND);
107
    var collapsible = $(".collapsed,.expanded");
117
    var collapsible = $(".collapsed,.expanded");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt (-2 / +2 lines)
Lines 60-66 Link Here
60
60
61
   <div id="bd">
61
   <div id="bd">
62
    <div id="yui-main">
62
    <div id="yui-main">
63
    <div class="yui-b">
63
	    <div class="yui-b">
64
64
65
    [% IF ( jump_not_found ) %]
65
    [% IF ( jump_not_found ) %]
66
    <h2>System preferences</h2>
66
    <h2>System preferences</h2>
Lines 141-146 Link Here
141
                        [% ELSE %]
141
                        [% ELSE %]
142
                        <a class="expand-textarea" style="display: none" href="#">Click to Edit</a>
142
                        <a class="expand-textarea" style="display: none" href="#">Click to Edit</a>
143
                        <textarea name="pref_[% CHUNK.name %]" id="pref_[% CHUNK.name %]" class="preference preference-[% CHUNK.class or "short" %]" rows="10" cols="40">[% CHUNK.value %]</textarea>
143
                        <textarea name="pref_[% CHUNK.name %]" id="pref_[% CHUNK.name %]" class="preference preference-[% CHUNK.class or "short" %]" rows="10" cols="40">[% CHUNK.value %]</textarea>
144
                        <a class="collapse-textarea" style="display:none" href="#">Click to collapse</br></a>
144
                        [% END %]
145
                        [% END %]
145
                    [% ELSIF ( CHUNK.type_languages ) %]
146
                    [% ELSIF ( CHUNK.type_languages ) %]
146
                    <dl>
147
                    <dl>
147
- 

Return to bug 15617