1
0
Fork 0

isMailable works correct now

This commit is contained in:
Tobias Herre 2021-06-13 00:51:43 +02:00
parent 65427097ba
commit a0bc4559ed
1 changed files with 1 additions and 15 deletions

View File

@ -54,7 +54,7 @@ function isMailable(){
var row_no=1; var row_no=1;
var table = document.getElementById("tabbody"); var table = document.getElementById("tabbody");
for (var i = 0, row; row = table.rows[i]; i++) { for (var i = 0, row; row = table.rows[i]; i++) {
var pdfs = row.cells[4].innerHTML; pdfs = row.cells[5].querySelector('input[name="file-count"]').value;
if (pdfs==0) if (pdfs==0)
return false; return false;
} }
@ -76,20 +76,6 @@ function isFloat(val) {
/**
* grey-out currency iselection if there is at least one document is atatched.
*/
function disableCurrency()
{
if (countRows()>0){
document.getElementById("a_currency").disabled=true;
}
else {
document.getElementById("a_currency").disabled=false;
}
}
function deleteTableRow(rowId){ function deleteTableRow(rowId){
var target = document.getElementById("upload-target"+rowId); var target = document.getElementById("upload-target"+rowId);