check for an empty string instead of null when looking at the value of a textbox

This commit is contained in:
pavlov%pavlov.net 2005-06-01 01:47:38 +00:00
Родитель 50ff79e209
Коммит 87b8d7dd84
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -151,7 +151,7 @@ function saveDialog()
case 0:
recRule.type = "DAILY";
var ndays = Number(getElementValue("daily-days"));
if (ndays == null)
if (ndays == "")
ndays = 1;
recRule.interval = ndays;
break;
@ -175,7 +175,7 @@ function saveDialog()
case 3:
recRule.type = "YEARLY";
var nyears = Number(getElementValue("yearly-years"));
if (nyears == null)
if (nyears == "")
nyears = 1;
recRule.interval = nyears;
break;