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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc (-1 / +1 lines)
Lines 215-221 function KohaTable(id_selector, dt_parameters, table_settings, add_filters) { Link Here
215
        }
215
        }
216
    );
216
    );
217
217
218
    if ( table_settings ) {
218
    if ( table_settings && ( table_settings.hasOwnProperty('default_save_state') && table_settings['default_save_state'] !== 0 ) ) {
219
        dt_parameters["buttons"].push(
219
        dt_parameters["buttons"].push(
220
            {
220
            {
221
                autoClose: true,
221
                autoClose: true,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt (-21 / +22 lines)
Lines 149-174 Link Here
149
                                    </p>
149
                                    </p>
150
                                [% END %]
150
                                [% END %]
151
151
152
                                <p>
152
                                [% IF table_settings.default_save_state %]
153
                                    [% SET option_name = pagename _ "|" _ tablename _ "_default_save_state" %]
153
                                    <p>
154
                                    <label for="[% option_name | html %]" title="Save the column visibility, length of the table and order in session">Save configuration state on page change:</label>
154
                                        [% SET option_name = pagename _ "|" _ tablename _ "_default_save_state" %]
155
                                    [%- IF table_settings.default_save_state -%]
155
                                        <label for="[% option_name | html %]" title="Save the column visibility, length of the table and order in session">Save configuration state on page change:</label>
156
                                        <input type="checkbox" id="[% option_name | html %]" name="[% option_name | html %]" value="1" checked="checked" />
156
                                        [%- IF table_settings.default_save_state -%]
157
                                    [%- ELSE -%]
157
                                            <input type="checkbox" id="[% option_name | html %]" name="[% option_name | html %]" value="1" checked="checked" />
158
                                        <input type="checkbox" id="[% option_name | html %]" name="[% option_name | html %]" value="1" />
158
                                        [%- ELSE -%]
159
                                    [%- END -%]
159
                                            <input type="checkbox" id="[% option_name | html %]" name="[% option_name | html %]" value="1" />
160
                                </p>
160
                                        [%- END -%]
161
161
                                    </p>
162
                                <p>
162
                                [% END %]
163
                                    [% SET option_name = pagename _ "|" _ tablename _ "_default_save_state_search" %]
163
                                [% IF table_settings.default_save_state_search %]
164
                                    <label for="[% option_name | html %]" title="Save the search and filtering in session">Save search state on page change:</label>
164
                                    <p>
165
                                    [%- IF table_settings.default_save_state_search -%]
165
                                        [% SET option_name = pagename _ "|" _ tablename _ "_default_save_state_search" %]
166
                                        <input type="checkbox" id="[% option_name | html %]" name="[% option_name | html %]" value="1" checked="checked" />
166
                                        <label for="[% option_name | html %]" title="Save the search and filtering in session">Save search state on page change:</label>
167
                                    [%- ELSE -%]
167
                                        [%- IF table_settings.default_save_state_search -%]
168
                                        <input type="checkbox" id="[% option_name | html %]" name="[% option_name | html %]" value="1" />
168
                                            <input type="checkbox" id="[% option_name | html %]" name="[% option_name | html %]" value="1" checked="checked" />
169
                                    [%- END -%]
169
                                        [%- ELSE -%]
170
                                </p>
170
                                            <input type="checkbox" id="[% option_name | html %]" name="[% option_name | html %]" value="1" />
171
171
                                        [%- END -%]
172
                                    </p>
173
                                [% END %]
172
                            </div>
174
                            </div>
173
                        [% END %]
175
                        [% END %]
174
                        <fieldset class="action">
176
                        <fieldset class="action">
175
- 

Return to bug 37238