Lines 21-28
function clone_line(line) {
Link Here
|
21 |
} |
21 |
} |
22 |
|
22 |
|
23 |
function tableInit( oldtabid, newtabid ) { |
23 |
function tableInit( oldtabid, newtabid ) { |
24 |
console.log( oldtabid ); |
|
|
25 |
console.log( newtabid ); |
26 |
if ( oldtabid ){ |
24 |
if ( oldtabid ){ |
27 |
var oldTableId = $("#" + oldtabid + "_table"); |
25 |
var oldTableId = $("#" + oldtabid + "_table"); |
28 |
oldTableId.DataTable().destroy(); |
26 |
oldTableId.DataTable().destroy(); |
Lines 44-50
$(document).ready(function () {
Link Here
|
44 |
tableInit( "", "search_fields"); |
42 |
tableInit( "", "search_fields"); |
45 |
|
43 |
|
46 |
$("a[data-toggle='tab']").on("shown.bs.tab", function (e) { |
44 |
$("a[data-toggle='tab']").on("shown.bs.tab", function (e) { |
47 |
tableInit( e.relatedTarget.id, e.target.id ); |
45 |
var oldtabid = $(e.relatedTarget).data("tab"); |
|
|
46 |
var newtabid = $(e.target).data("tab"); |
47 |
tableInit( oldtabid, newtabid ); |
48 |
}); |
48 |
}); |
49 |
|
49 |
|
50 |
$('.delete').click(function () { |
50 |
$('.delete').click(function () { |
51 |
- |
|
|