From: dpavlin Date: Tue, 20 Sep 2005 16:23:04 +0000 (+0000) Subject: fixed JavaScript NaN output (we should really hide checkboxes on rows X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=51a9c2d3e2daae63a87be4f2c6e199b7e158f83f;p=BackupPC.git fixed JavaScript NaN output (we should really hide checkboxes on rows which doesn't have tar increments) git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@124 8392b6e1-25fa-0310-8288-cc32f8e212ea --- diff --git a/lib/BackupPC/SearchLib.pm b/lib/BackupPC/SearchLib.pm index 73d6939..82b3886 100644 --- a/lib/BackupPC/SearchLib.pm +++ b/lib/BackupPC/SearchLib.pm @@ -374,7 +374,7 @@ sub displayBackupsGrid() if (e.checked) { var ret = e.name.match("fcb(.*)"); - suma += parseInt(eval("document.forma.fss"+ret[1]+".value")); + suma += parseInt(eval("document.forma.fss"+ret[1]+".value") || 0); } }