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

(-)a/admin/columns_settings.pl (+2 lines)
Lines 75-80 if ( $action eq 'list' ) { Link Here
75
    my $modules = C4::Utils::DataTables::TablesSettings::get_modules;
75
    my $modules = C4::Utils::DataTables::TablesSettings::get_modules;
76
    $template->param(
76
    $template->param(
77
        panel   => defined $input->param('module') ? $input->param('module') : undef,
77
        panel   => defined $input->param('module') ? $input->param('module') : undef,
78
        page    => defined $input->param('page') ? $input->param('page') : undef,
79
        table   => defined $input->param('table') ? $input->param('table') : undef,
78
        modules => $modules,
80
        modules => $modules,
79
    );
81
    );
80
}
82
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc (-2 / +2 lines)
Lines 165-174 function KohaTable(id_selector, dt_parameters, table_settings, add_filters) { Link Here
165
        dt_parameters[ "buttons" ].push(
165
        dt_parameters[ "buttons" ].push(
166
            {
166
            {
167
                className: "dt_button_configure_table",
167
                className: "dt_button_configure_table",
168
                titleAttr: __("Configure this table"),                   
168
                titleAttr: __("Configure this table"),
169
                text: '<i class="fa fa-lg fa-wrench"></i> <span class="dt-button-text">' + _("Configure this table") + '</span>',
169
                text: '<i class="fa fa-lg fa-wrench"></i> <span class="dt-button-text">' + _("Configure this table") + '</span>',
170
                action: function() {
170
                action: function() {
171
                    window.location = '/cgi-bin/koha/admin/columns_settings.pl?module=' + table_settings['module'] + '#' + table_settings['page'] + '#' + table_settings['table'];
171
                    window.location = '/cgi-bin/koha/admin/columns_settings.pl?module=' + table_settings['module'] + '&page=' + table_settings['page'] + '&table=' + table_settings['table'];
172
                },
172
                },
173
            }
173
            }
174
        );
174
        );
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt (+11 lines)
Lines 441-446 Link Here
441
        <script>
441
        <script>
442
            $(document).ready( function() {
442
            $(document).ready( function() {
443
                $("#[% panel | uri %]Toggle").click();
443
                $("#[% panel | uri %]Toggle").click();
444
                [%- IF page.defined -%]
445
                $("#[% panel | uri %]").on('shown.bs.collapse', function () {
446
                    $('html, body').animate({
447
                        [%- IF table.defined -%]
448
                        scrollTop: ($("#[% page | uri %]\\#[% table | uri %]").offset().top)
449
                        [%- ELSE -%]
450
                        scrollTop: ($("#[% page | uri %]").offset().top)
451
                        [%- END -%]
452
                    }, 500);
453
                });
454
                [%- END -%]
444
            });
455
            });
445
        </script>
456
        </script>
446
    [%- END -%]
457
    [%- END -%]
(-)a/koha-tmpl/intranet-tmpl/prog/js/datatables.js (-3 / +2 lines)
Lines 817-826 jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { Link Here
817
            settings[ "buttons" ].push(
817
            settings[ "buttons" ].push(
818
                {
818
                {
819
                    className: "dt_button_configure_table",
819
                    className: "dt_button_configure_table",
820
                    titleAttr: __("Configure this table"),                   
820
                    titleAttr: __("Configure this table"),
821
                    text: '<i class="fa fa-lg fa-wrench"></i> <span class="dt-button-text">' + __("Configure this table") + '</span>',
821
                    text: '<i class="fa fa-lg fa-wrench"></i> <span class="dt-button-text">' + __("Configure this table") + '</span>',
822
                    action: function() {
822
                    action: function() {
823
                        window.location = '/cgi-bin/koha/admin/columns_settings.pl?module=' + table_settings['module'] + '#' + table_settings['page'] + '#' + table_settings['table'];
823
                        window.location = '/cgi-bin/koha/admin/columns_settings.pl?module=' + table_settings['module'] + '&page=' + table_settings['page'] + '&table=' + table_settings['table'];
824
                    },
824
                    },
825
                }
825
                }
826
            );
826
            );
827
- 

Return to bug 29723