Lines 82-85
$(document).ready(function () {
Link Here
|
82 |
$("#facet_biblios > table").tableDnD({ |
82 |
$("#facet_biblios > table").tableDnD({ |
83 |
onDragClass: "dragClass highlighted-row", |
83 |
onDragClass: "dragClass highlighted-row", |
84 |
}); |
84 |
}); |
|
|
85 |
|
86 |
$("#es_mappings").on("submit", function(e){ |
87 |
e.preventDefault(); |
88 |
let data = $("#search_fields_table").DataTable().$('input,select,textarea').serializeArray(); |
89 |
data = data.concat($("#mapping_biblios_table").DataTable().$('input,select,textarea').serializeArray()); |
90 |
data = data.concat($("#mapping_authorities_table").DataTable().$('input,select,textarea').serializeArray()); |
91 |
$.post({ |
92 |
url: '/cgi-bin/koha/admin/searchengine/elasticsearch/mappings.pl', |
93 |
data: data |
94 |
}); |
95 |
window.location.href="/cgi-bin/koha/admin/searchengine/elasticsearch/mappings.pl"; |
96 |
}); |
85 |
}); |
97 |
}); |
86 |
- |
|
|