зеркало из https://github.com/mozilla/gecko-dev.git
Fixing calendar alarm dates.
This commit is contained in:
Родитель
5db31f6bdd
Коммит
8f214e7b5e
|
@ -146,7 +146,7 @@ function createAlarmBox( Event )
|
|||
|
||||
OuterBox.getElementsByAttribute( "name", "SnoozeButton" )[0].setAttribute( "onclick", "snoozeAlarm( this.event );removeAlarmBox( this.event );" );
|
||||
|
||||
OuterBox.getElementsByAttribute( "name", "alarm-length-field" )[0].value = opener.getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "event.defaultsnoozelength", 60 );
|
||||
OuterBox.getElementsByAttribute( "name", "alarm-length-field" )[0].value = opener.getIntPref(opener.gCalendarWindow.calendarPreferences.calendarPref, "event.defaultsnoozelength", 60 );
|
||||
|
||||
kungFooDeathGripOnEventBoxes.push( OuterBox.getElementsByAttribute( "name", "SnoozeButton" )[0] );
|
||||
|
||||
|
@ -159,13 +159,13 @@ function createAlarmBox( Event )
|
|||
var EventDescription = document.createTextNode( Event.description );
|
||||
OuterBox.getElementsByAttribute( "name", "Description" )[0].appendChild( EventDescription );
|
||||
|
||||
var startDate = new Date( Event.start.getTime() );
|
||||
var displayDate = new Date( Event.displayDate );
|
||||
|
||||
var EventStartDate = document.createTextNode( getFormatedDate( startDate ) );
|
||||
OuterBox.getElementsByAttribute( "name", "StartDate" )[0].appendChild( EventStartDate );
|
||||
var EventDisplayDate = document.createTextNode( getFormatedDate( displayDate ) );
|
||||
OuterBox.getElementsByAttribute( "name", "StartDate" )[0].appendChild( EventDisplayDate );
|
||||
|
||||
var EventStartTime = document.createTextNode( getFormatedTime( startDate ) );
|
||||
OuterBox.getElementsByAttribute( "name", "StartTime" )[0].appendChild( EventStartTime );
|
||||
var EventDisplayTime = document.createTextNode( getFormatedTime( displayDate ) );
|
||||
OuterBox.getElementsByAttribute( "name", "StartTime" )[0].appendChild( EventDisplayTime );
|
||||
|
||||
/*
|
||||
** 3rd part of the row: the number of times that alarm went off (sometimes hidden)
|
||||
|
|
|
@ -703,7 +703,7 @@ CalendarAlarmObserver.prototype.fireAlarm = function calAlarm_fireAlarm( calenda
|
|||
playSound();
|
||||
}
|
||||
|
||||
addEventToDialog( calendarEvent );
|
||||
addEventToDialog( calendarEvent );
|
||||
|
||||
if ( calendarEvent.alarmEmailAddress )
|
||||
{
|
||||
|
|
|
@ -146,7 +146,7 @@ function createAlarmBox( Event )
|
|||
|
||||
OuterBox.getElementsByAttribute( "name", "SnoozeButton" )[0].setAttribute( "onclick", "snoozeAlarm( this.event );removeAlarmBox( this.event );" );
|
||||
|
||||
OuterBox.getElementsByAttribute( "name", "alarm-length-field" )[0].value = opener.getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "event.defaultsnoozelength", 60 );
|
||||
OuterBox.getElementsByAttribute( "name", "alarm-length-field" )[0].value = opener.getIntPref(opener.gCalendarWindow.calendarPreferences.calendarPref, "event.defaultsnoozelength", 60 );
|
||||
|
||||
kungFooDeathGripOnEventBoxes.push( OuterBox.getElementsByAttribute( "name", "SnoozeButton" )[0] );
|
||||
|
||||
|
@ -159,13 +159,13 @@ function createAlarmBox( Event )
|
|||
var EventDescription = document.createTextNode( Event.description );
|
||||
OuterBox.getElementsByAttribute( "name", "Description" )[0].appendChild( EventDescription );
|
||||
|
||||
var startDate = new Date( Event.start.getTime() );
|
||||
var displayDate = new Date( Event.displayDate );
|
||||
|
||||
var EventStartDate = document.createTextNode( getFormatedDate( startDate ) );
|
||||
OuterBox.getElementsByAttribute( "name", "StartDate" )[0].appendChild( EventStartDate );
|
||||
var EventDisplayDate = document.createTextNode( getFormatedDate( displayDate ) );
|
||||
OuterBox.getElementsByAttribute( "name", "StartDate" )[0].appendChild( EventDisplayDate );
|
||||
|
||||
var EventStartTime = document.createTextNode( getFormatedTime( startDate ) );
|
||||
OuterBox.getElementsByAttribute( "name", "StartTime" )[0].appendChild( EventStartTime );
|
||||
var EventDisplayTime = document.createTextNode( getFormatedTime( displayDate ) );
|
||||
OuterBox.getElementsByAttribute( "name", "StartTime" )[0].appendChild( EventDisplayTime );
|
||||
|
||||
/*
|
||||
** 3rd part of the row: the number of times that alarm went off (sometimes hidden)
|
||||
|
|
|
@ -100,7 +100,7 @@ function addEventToDialog( Event )
|
|||
calendarAlarmWindow.pendingEvents = new Array();
|
||||
}
|
||||
|
||||
//dump( "\n ADDING PENDING EVENT TO DIALOG _______________________" );
|
||||
dump( "\n ADDING PENDING EVENT TO DIALOG _______________________" );
|
||||
|
||||
calendarAlarmWindow.pendingEvents.push( Event );
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче