зеркало из https://github.com/mozilla/gecko-dev.git
Fixing bug 122673, recur forever events broken.
This commit is contained in:
Родитель
bb7dd6adb7
Коммит
5cb5096276
|
@ -313,7 +313,7 @@ function onOKCommand()
|
|||
}
|
||||
gEvent.recur = getFieldValue( "repeat-checkbox", "checked" );
|
||||
gEvent.recurUnits = getFieldValue( "repeat-length-units", "value" );
|
||||
gEvent.recurForever = getFieldValue( "repeat-forever-radio", "checked" );
|
||||
gEvent.recurForever = getFieldValue( "repeat-forever-radio", "selected" );
|
||||
gEvent.recurInterval = getFieldValue( "repeat-length-field" );
|
||||
|
||||
if( gEvent.recurInterval == 0 )
|
||||
|
@ -328,7 +328,7 @@ function onOKCommand()
|
|||
if( gEvent.recur == true )
|
||||
{
|
||||
//check that the repeat end time is later than the end time
|
||||
if( recurEndDate.getTime() < gEvent.end.getTime() && gEvent.recurForever != false )
|
||||
if( recurEndDate.getTime() < gEvent.end.getTime() && gEvent.recurForever == false )
|
||||
{
|
||||
alert( neRecurErrorAlertMessage );
|
||||
return( false );
|
||||
|
|
|
@ -313,7 +313,7 @@ function onOKCommand()
|
|||
}
|
||||
gEvent.recur = getFieldValue( "repeat-checkbox", "checked" );
|
||||
gEvent.recurUnits = getFieldValue( "repeat-length-units", "value" );
|
||||
gEvent.recurForever = getFieldValue( "repeat-forever-radio", "checked" );
|
||||
gEvent.recurForever = getFieldValue( "repeat-forever-radio", "selected" );
|
||||
gEvent.recurInterval = getFieldValue( "repeat-length-field" );
|
||||
|
||||
if( gEvent.recurInterval == 0 )
|
||||
|
@ -328,7 +328,7 @@ function onOKCommand()
|
|||
if( gEvent.recur == true )
|
||||
{
|
||||
//check that the repeat end time is later than the end time
|
||||
if( recurEndDate.getTime() < gEvent.end.getTime() && gEvent.recurForever != false )
|
||||
if( recurEndDate.getTime() < gEvent.end.getTime() && gEvent.recurForever == false )
|
||||
{
|
||||
alert( neRecurErrorAlertMessage );
|
||||
return( false );
|
||||
|
|
Загрузка…
Ссылка в новой задаче