Fixing bug 128823.
This commit is contained in:
Родитель
49f915b5a5
Коммит
dc26d4f9d1
|
@ -209,7 +209,7 @@ function loadCalendarEventDialog()
|
|||
|
||||
setFieldValue( "repeat-checkbox", gEvent.recur, "checked");
|
||||
setFieldValue( "repeat-length-field", gEvent.recurInterval );
|
||||
setFieldValue( "repeat-length-units", gEvent.recurUnits, "value" );
|
||||
setFieldValue( "repeat-length-units", gEvent.recurUnits ); //don't put the extra "value" element here, or it won't work.
|
||||
setFieldValue( "repeat-forever-radio", (gEvent.recurForever != undefined && gEvent.recurForever != false), "selected" );
|
||||
setFieldValue( "repeat-until-radio", (gEvent.recurForever == undefined || gEvent.recurForever == false), "selected" );
|
||||
|
||||
|
@ -233,7 +233,6 @@ function loadCalendarEventDialog()
|
|||
// set up OK, Cancel
|
||||
|
||||
doSetOKCancel( onOKCommand, 0 );
|
||||
|
||||
// start focus on title
|
||||
|
||||
var firstFocus = document.getElementById( "title-field" );
|
||||
|
@ -796,34 +795,31 @@ function updateRepeatUnitExtensions( )
|
|||
if( repeatMenu.selectedItem )
|
||||
{
|
||||
switch( repeatMenu.selectedItem.value )
|
||||
{
|
||||
{
|
||||
case "days":
|
||||
weekExtensions.setAttribute( "collapsed", "true" );
|
||||
monthExtensions.setAttribute( "collapsed", "true" );
|
||||
sizeToContent();
|
||||
break;
|
||||
|
||||
case "weeks":
|
||||
weekExtensions.setAttribute( "collapsed", "false" );
|
||||
monthExtensions.setAttribute( "collapsed", "true" );
|
||||
updateAdvancedWeekRepeat();
|
||||
sizeToContent();
|
||||
break;
|
||||
|
||||
case "months":
|
||||
weekExtensions.setAttribute( "collapsed", "true" );
|
||||
monthExtensions.setAttribute( "collapsed", "false" );
|
||||
updateAdvancedRepeatDayOfMonth();
|
||||
sizeToContent();
|
||||
break;
|
||||
|
||||
case "years":
|
||||
weekExtensions.setAttribute( "collapsed", "true" );
|
||||
monthExtensions.setAttribute( "collapsed", "true" );
|
||||
sizeToContent();
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
sizeToContent();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -247,10 +247,10 @@
|
|||
|
||||
<menulist crop="none" oncommand="repeatUnitCommand( this )" labelnumber="labelplural" id="repeat-length-units" disable-controller="repeat">
|
||||
<menupopup>
|
||||
<menuitem label="&repeat.units.days;" labelplural="&repeat.units.days;" labelsingular="&repeat.units.days.singular;" value="days" />
|
||||
<menuitem label="&repeat.units.weeks;" labelplural="&repeat.units.weeks;" labelsingular="&repeat.units.weeks.singular;" selected="true" value="weeks" />
|
||||
<menuitem label="&repeat.units.months;" labelplural="&repeat.units.months;" labelsingular="&repeat.units.months.singular;" value="months" />
|
||||
<menuitem label="&repeat.units.years;" labelplural="&repeat.units.years;" labelsingular="&repeat.units.years.singular;" value="years" />
|
||||
<menuitem label="&repeat.units.days;" labelplural="&repeat.units.days;" labelsingular="&repeat.units.days.singular;" id="repeat-length-days" value="days" />
|
||||
<menuitem label="&repeat.units.weeks;" labelplural="&repeat.units.weeks;" labelsingular="&repeat.units.weeks.singular;" id="repeat-length-weeks" value="weeks" selected="true" />
|
||||
<menuitem label="&repeat.units.months;" labelplural="&repeat.units.months;" labelsingular="&repeat.units.months.singular;" id="repeat-length-months" value="months" />
|
||||
<menuitem label="&repeat.units.years;" labelplural="&repeat.units.years;" labelsingular="&repeat.units.years.singular;" id="repeat-length-years" value="years" />
|
||||
</menupopup>
|
||||
</menulist>
|
||||
</hbox>
|
||||
|
@ -272,8 +272,8 @@
|
|||
<spacer class="repeat-left-spacer" />
|
||||
<vbox>
|
||||
<radiogroup id="advanced-repeat-month" disable-controller="repeat">
|
||||
<radio group="advanced-repeat-month" disable-controller="repeat" id="advanced-repeat-dayofmonth" label="On the xth day of the month" selected="true" />
|
||||
<radio group="advanced-repeat-month" disable-controller="repeat" id="advanced-repeat-dayofweek" label="Last Tuesday of the month" selected="false" />
|
||||
<radio group="advanced-repeat-month" disable-controller="repeat" id="advanced-repeat-dayofmonth" label="On the xth day of the month" selected="true"/>
|
||||
<radio group="advanced-repeat-month" disable-controller="repeat" id="advanced-repeat-dayofweek" label="Last Tuesday of the month"/>
|
||||
</radiogroup>
|
||||
</vbox>
|
||||
</hbox>
|
||||
|
|
|
@ -209,7 +209,7 @@ function loadCalendarEventDialog()
|
|||
|
||||
setFieldValue( "repeat-checkbox", gEvent.recur, "checked");
|
||||
setFieldValue( "repeat-length-field", gEvent.recurInterval );
|
||||
setFieldValue( "repeat-length-units", gEvent.recurUnits, "value" );
|
||||
setFieldValue( "repeat-length-units", gEvent.recurUnits ); //don't put the extra "value" element here, or it won't work.
|
||||
setFieldValue( "repeat-forever-radio", (gEvent.recurForever != undefined && gEvent.recurForever != false), "selected" );
|
||||
setFieldValue( "repeat-until-radio", (gEvent.recurForever == undefined || gEvent.recurForever == false), "selected" );
|
||||
|
||||
|
@ -233,7 +233,6 @@ function loadCalendarEventDialog()
|
|||
// set up OK, Cancel
|
||||
|
||||
doSetOKCancel( onOKCommand, 0 );
|
||||
|
||||
// start focus on title
|
||||
|
||||
var firstFocus = document.getElementById( "title-field" );
|
||||
|
@ -796,34 +795,31 @@ function updateRepeatUnitExtensions( )
|
|||
if( repeatMenu.selectedItem )
|
||||
{
|
||||
switch( repeatMenu.selectedItem.value )
|
||||
{
|
||||
{
|
||||
case "days":
|
||||
weekExtensions.setAttribute( "collapsed", "true" );
|
||||
monthExtensions.setAttribute( "collapsed", "true" );
|
||||
sizeToContent();
|
||||
break;
|
||||
|
||||
case "weeks":
|
||||
weekExtensions.setAttribute( "collapsed", "false" );
|
||||
monthExtensions.setAttribute( "collapsed", "true" );
|
||||
updateAdvancedWeekRepeat();
|
||||
sizeToContent();
|
||||
break;
|
||||
|
||||
case "months":
|
||||
weekExtensions.setAttribute( "collapsed", "true" );
|
||||
monthExtensions.setAttribute( "collapsed", "false" );
|
||||
updateAdvancedRepeatDayOfMonth();
|
||||
sizeToContent();
|
||||
break;
|
||||
|
||||
case "years":
|
||||
weekExtensions.setAttribute( "collapsed", "true" );
|
||||
monthExtensions.setAttribute( "collapsed", "true" );
|
||||
sizeToContent();
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
sizeToContent();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -247,10 +247,10 @@
|
|||
|
||||
<menulist crop="none" oncommand="repeatUnitCommand( this )" labelnumber="labelplural" id="repeat-length-units" disable-controller="repeat">
|
||||
<menupopup>
|
||||
<menuitem label="&repeat.units.days;" labelplural="&repeat.units.days;" labelsingular="&repeat.units.days.singular;" value="days" />
|
||||
<menuitem label="&repeat.units.weeks;" labelplural="&repeat.units.weeks;" labelsingular="&repeat.units.weeks.singular;" selected="true" value="weeks" />
|
||||
<menuitem label="&repeat.units.months;" labelplural="&repeat.units.months;" labelsingular="&repeat.units.months.singular;" value="months" />
|
||||
<menuitem label="&repeat.units.years;" labelplural="&repeat.units.years;" labelsingular="&repeat.units.years.singular;" value="years" />
|
||||
<menuitem label="&repeat.units.days;" labelplural="&repeat.units.days;" labelsingular="&repeat.units.days.singular;" id="repeat-length-days" value="days" />
|
||||
<menuitem label="&repeat.units.weeks;" labelplural="&repeat.units.weeks;" labelsingular="&repeat.units.weeks.singular;" id="repeat-length-weeks" value="weeks" selected="true" />
|
||||
<menuitem label="&repeat.units.months;" labelplural="&repeat.units.months;" labelsingular="&repeat.units.months.singular;" id="repeat-length-months" value="months" />
|
||||
<menuitem label="&repeat.units.years;" labelplural="&repeat.units.years;" labelsingular="&repeat.units.years.singular;" id="repeat-length-years" value="years" />
|
||||
</menupopup>
|
||||
</menulist>
|
||||
</hbox>
|
||||
|
@ -272,8 +272,8 @@
|
|||
<spacer class="repeat-left-spacer" />
|
||||
<vbox>
|
||||
<radiogroup id="advanced-repeat-month" disable-controller="repeat">
|
||||
<radio group="advanced-repeat-month" disable-controller="repeat" id="advanced-repeat-dayofmonth" label="On the xth day of the month" selected="true" />
|
||||
<radio group="advanced-repeat-month" disable-controller="repeat" id="advanced-repeat-dayofweek" label="Last Tuesday of the month" selected="false" />
|
||||
<radio group="advanced-repeat-month" disable-controller="repeat" id="advanced-repeat-dayofmonth" label="On the xth day of the month" selected="true"/>
|
||||
<radio group="advanced-repeat-month" disable-controller="repeat" id="advanced-repeat-dayofweek" label="Last Tuesday of the month"/>
|
||||
</radiogroup>
|
||||
</vbox>
|
||||
</hbox>
|
||||
|
|
Загрузка…
Ссылка в новой задаче