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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt (-4 / +4 lines)
Lines 97-103 a.add, a.delete { Link Here
97
        </div>
97
        </div>
98
    [% END %]
98
    [% END %]
99
    <form method="post">
99
    <form method="post">
100
        <div id="tabs" class="toptabs" style="clear:both">
100
        <div id="tabs" class="toptabs ui-tabs" style="clear:both">
101
            <ul>
101
            <ul>
102
                <li><a href="#search_fields">Search fields</a></li>
102
                <li><a href="#search_fields">Search fields</a></li>
103
                [% FOREACH index IN indexes %]
103
                [% FOREACH index IN indexes %]
Lines 107-113 a.add, a.delete { Link Here
107
                    [% END %]
107
                    [% END %]
108
                [% END %]
108
                [% END %]
109
            </ul>
109
            </ul>
110
            <div id="search_fields">
110
            <div id="search_fields" class="ui-tabs-panel">
111
              <table class="search_fields" id="search_fields_table">
111
              <table class="search_fields" id="search_fields_table">
112
                <thead>
112
                <thead>
113
                  <tr>
113
                  <tr>
Lines 229-235 a.add, a.delete { Link Here
229
              </table>
229
              </table>
230
            </div>
230
            </div>
231
            [% FOREACH index IN indexes %]
231
            [% FOREACH index IN indexes %]
232
                <div id="mapping_[% index.index_name | html %]">
232
                <div id="mapping_[% index.index_name | html %]" class="ui-tabs-panel">
233
                    <table class="mappings" data-index_name="[% index.index_name | html %]" data-ordering="false" id="mapping_[% index.index_name | html %]_table">
233
                    <table class="mappings" data-index_name="[% index.index_name | html %]" data-ordering="false" id="mapping_[% index.index_name | html %]_table">
234
                      <thead>
234
                      <thead>
235
                        <tr class="nodrag nodrop">
235
                        <tr class="nodrag nodrop">
Lines 398-404 a.add, a.delete { Link Here
398
398
399
                    [% IF index.index_name == 'biblios' %]
399
                    [% IF index.index_name == 'biblios' %]
400
                        <h3>Facet order</h3>
400
                        <h3>Facet order</h3>
401
                        <div id="facet_[% index.index_name | html %]">
401
                        <div id="facet_[% index.index_name | html %]" class="ui-tabs-panel">
402
                            <table>
402
                            <table>
403
                                <thead>
403
                                <thead>
404
                                    <tr>
404
                                    <tr>
(-)a/koha-tmpl/intranet-tmpl/prog/js/elasticsearch-mappings.js (-5 / +6 lines)
Lines 1-4 Link Here
1
/* global __ */
1
/* global __ dataTablesDefaults */
2
2
3
function clean_line(line) {
3
function clean_line(line) {
4
    $(line).find('input[type="text"]').val("");
4
    $(line).find('input[type="text"]').val("");
Lines 22-31 function clone_line(line) { Link Here
22
22
23
function tableInit( oldtabid, newtabid ) {
23
function tableInit( oldtabid, newtabid ) {
24
24
25
    var oldTableId = $("#" + oldtabid + "_table");
25
    if ( oldtabid ){
26
    var newTableId = $("#" + newtabid + "_table");
26
        var oldTableId = $("#" + oldtabid + "_table");
27
        oldTableId.DataTable().destroy();
28
    }
27
29
28
    oldTableId.DataTable().destroy();
30
    var newTableId = $("#" + newtabid + "_table");
29
    newTableId.DataTable(
31
    newTableId.DataTable(
30
        $.extend(true, {}, dataTablesDefaults, {
32
        $.extend(true, {}, dataTablesDefaults, {
31
            "columnDefs": [
33
            "columnDefs": [
32
- 

Return to bug 27682