From 0d2c9282cff76dafbda8356feac0cdc3dc0de1dd Mon Sep 17 00:00:00 2001 From: "mikep%oeone.com" Date: Thu, 5 Sep 2002 15:23:43 +0000 Subject: [PATCH] Fixing bug 166762. --- calendar/resources/content/calendarEventDialog.js | 5 ++++- calendar/resources/content/eventDialog.js | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/calendar/resources/content/calendarEventDialog.js b/calendar/resources/content/calendarEventDialog.js index 0475abb8a0e..7b40a70a674 100644 --- a/calendar/resources/content/calendarEventDialog.js +++ b/calendar/resources/content/calendarEventDialog.js @@ -519,7 +519,10 @@ function updateOKButton() var CheckRecurTime = checkRecurTime(); - document.getElementById( "calendar-new-eventwindow" ).getButton( "accept" ).setAttribute( "disabled", !( CheckEndTime && CheckRecurTime ) ); + if( ( CheckEndTime && CheckRecurTime ) === false ) + document.getElementById( "calendar-new-eventwindow" ).getButton( "accept" ).setAttribute( "disabled", true ); + else + document.getElementById( "calendar-new-eventwindow" ).getButton( "accept" ).removeAttribute( "disabled" ); } /** diff --git a/calendar/resources/content/eventDialog.js b/calendar/resources/content/eventDialog.js index 0475abb8a0e..7b40a70a674 100644 --- a/calendar/resources/content/eventDialog.js +++ b/calendar/resources/content/eventDialog.js @@ -519,7 +519,10 @@ function updateOKButton() var CheckRecurTime = checkRecurTime(); - document.getElementById( "calendar-new-eventwindow" ).getButton( "accept" ).setAttribute( "disabled", !( CheckEndTime && CheckRecurTime ) ); + if( ( CheckEndTime && CheckRecurTime ) === false ) + document.getElementById( "calendar-new-eventwindow" ).getButton( "accept" ).setAttribute( "disabled", true ); + else + document.getElementById( "calendar-new-eventwindow" ).getButton( "accept" ).removeAttribute( "disabled" ); } /**