rem: var ndays = Number(getElementValue("daily-days")); if (ndays == "" || ndays < 1) { document.getElementById("repeat-interval-warning").removeAttribute("hidden"); acceptButton.setAttribute("disabled", "true"); } 
add: interval = Number(getElementValue("daily-days")); break; case 1: interval = Number(getElementValue("weekly-weeks")); break; case 2: interval = Number(getElementValue("monthly-months")); 
context: function updateAccept(){    var acceptButton = document.getElementById("calendar-recurrence-dialog").getButton("accept");    acceptButton.removeAttribute("disabled", "true");    document.getElementById("repeat-interval-warning").setAttribute("hidden", true);    document.getElementById("repeat-numberoftimes-warning").setAttribute("hidden", true);    switch (Number(getElementValue("period-list"))) {    case 0: // daily        var ndays = Number(getElementValue("daily-days"));        if (ndays == "" || ndays < 1) {            document.getElementById("repeat-interval-warning").removeAttribute("hidden");            acceptButton.setAttribute("disabled", "true");        }        break;    case 3: // yearly        var nyears = Number(getElementValue("yearly-years"));        if (nyears == "" || nyears < 1) {            document.getElementById("repeat-interval-warning").removeAttribute("hidden");            acceptButton.setAttribute("disabled", "true");        }        break;    }    if (document.getElementById("recurrence-duration").selectedItem.value == "ntimes") {        var ntimes = getElementValue("repeat-ntimes-count");        if (ntimes == "" || ntimes < 1) {            document.getElementById("repeat-numberoftimes-warning").removeAttribute("hidden");            acceptButton.setAttribute("disabled", "true");        }    }    this.sizeToContent();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0203afc67d8354462b53ad72520dc764e82a0e3e/calendar-recurrence-dialog.js/clean/calendar/base/content/calendar-recurrence-dialog.js