|
@ -3,11 +3,11 @@ var currentRowId=1; |
|
|
var banktype = "bank-eu"; |
|
|
var banktype = "bank-eu"; |
|
|
|
|
|
|
|
|
function renumberTableRows(){ |
|
|
function renumberTableRows(){ |
|
|
var row_no=1; |
|
|
|
|
|
var table = document.getElementById("tabbody"); |
|
|
|
|
|
for (var i = 0, row; row = table.rows[i]; i++) { |
|
|
|
|
|
// row.cells[0].innerHTML=row_no++;
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
var row_no=1; |
|
|
|
|
|
var table = document.getElementById("tabbody"); |
|
|
|
|
|
for (var i = 0, row; row = table.rows[i]; i++) { |
|
|
|
|
|
row.cells[0].innerHTML=row_no++; |
|
|
|
|
|
} |
|
|
return i; |
|
|
return i; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -149,8 +149,8 @@ function addTableRow(){ |
|
|
var children = target.children; |
|
|
var children = target.children; |
|
|
|
|
|
|
|
|
if (!children.length){ |
|
|
if (!children.length){ |
|
|
showAlert("Bitte lade mindestens einen Beleg hoch!"); |
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
// showAlert("Bitte lade mindestens einen Beleg hoch!");
|
|
|
|
|
|
// return;
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -159,7 +159,7 @@ function addTableRow(){ |
|
|
|
|
|
|
|
|
/* a_type = "Hello";*/ |
|
|
/* a_type = "Hello";*/ |
|
|
|
|
|
|
|
|
var e=""; |
|
|
|
|
|
|
|
|
var e="<td></td>"; |
|
|
|
|
|
|
|
|
// add column for position no
|
|
|
// add column for position no
|
|
|
// e += `<td>${a_type}
|
|
|
// e += `<td>${a_type}
|
|
@ -213,7 +213,7 @@ function addTableRow(){ |
|
|
|
|
|
|
|
|
$node.append(element); |
|
|
$node.append(element); |
|
|
element.innerHTML=(e); |
|
|
element.innerHTML=(e); |
|
|
// renumberTableRows();
|
|
|
|
|
|
|
|
|
renumberTableRows(); |
|
|
currentRowId++; |
|
|
currentRowId++; |
|
|
reset2(); |
|
|
reset2(); |
|
|
disableCurrency(); |
|
|
disableCurrency(); |
|
|