isMailable works correct now
This commit is contained in:
parent
65427097ba
commit
a0bc4559ed
1 changed files with 1 additions and 15 deletions
16
kaform.js
16
kaform.js
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue