Checked in patches for bug 254737

This commit is contained in:
mostafah%oeone.com 2004-08-09 16:47:52 +00:00
Родитель abb54915ac
Коммит 2628259213
4 изменённых файлов: 80 добавлений и 62 удалений

Просмотреть файл

@ -916,18 +916,29 @@ function updateMenuPlural( lengthFieldId, menuId )
function updateUntilItemEnabled()
{
var repeatUntilRadio = document.getElementById( "repeat-until-radio" );
var repeatCheckBox = document.getElementById( "repeat-checkbox" );
var numberRadio = document.getElementById("repeat-numberoftimes-radio");
var numberTextBox = document.getElementById("repeat-numberoftimes-textbox");
var repeatEndText = document.getElementById( "repeat-end-date-picker" );
if( repeatCheckBox.checked && repeatUntilRadio.selected )
if( repeatCheckBox.checked && numberRadio.selected )
{
repeatEndText.removeAttribute( "disabled" );
numberTextBox.removeAttribute( "disabled" );
}
else
{
repeatEndText.setAttribute( "disabled", "true" );
numberTextBox.setAttribute( "disabled", "true" );
}
var untilRadio = document.getElementById( "repeat-until-radio" );
var untilPicker = document.getElementById( "repeat-end-date-picker" );
if( repeatCheckBox.checked && untilRadio.selected )
{
untilPicker.removeAttribute( "disabled" );
}
else
{
untilPicker.setAttribute( "disabled", "true" );
}
}

Просмотреть файл

@ -462,31 +462,29 @@
disable-controller="repeat"
label="&newevent.forever.label;"
oncommand="commandUntil()"/>
<hbox>
<radio id="repeat-numberoftimes-radio"
disable-controller="repeat"
label="&newevent.numberoftimes.label;"
oncommand=""/>
<textbox id="repeat-numberoftimes-textbox"
disable-controller="repeat"/>
</hbox>
<vbox id="repeat-end-box" align="center">
<hbox>
<radio id="repeat-until-radio"
disable-controller="repeat"
label="&newevent.until.label;"
oncommand="commandUntil()"/>
<spacer id="until-spacer"/>
<datepicker id="repeat-end-date-picker"
disable-controller="repeat"
value=""
onchange="commandUntil()"/>
</hbox>
<label id="repeat-time-warning"
class="warning-text-class"
value="&newevent.recurend.warning;"
collapsed="true"/>
</vbox>
<hbox>
<radio id="repeat-numberoftimes-radio"
disable-controller="repeat"
label="&newevent.numberoftimes.label;"
oncommand="commandUntil()"/>
<textbox id="repeat-numberoftimes-textbox"
disable-controller="repeat"/>
</hbox>
<hbox>
<radio id="repeat-until-radio"
disable-controller="repeat"
label="&newevent.until.label;"
oncommand="commandUntil()"/>
<spacer id="until-spacer"/>
<datepicker id="repeat-end-date-picker"
disable-controller="repeat"
value=""
onchange="commandUntil()"/>
</hbox>
<label id="repeat-time-warning"
class="warning-text-class"
value="&newevent.recurend.warning;"
collapsed="true"/>
</radiogroup>
</hbox>

Просмотреть файл

@ -953,18 +953,29 @@ function updateMenuPlural( lengthFieldId, menuId )
function updateUntilItemEnabled()
{
var repeatUntilRadio = document.getElementById( "repeat-until-radio" );
var repeatCheckBox = document.getElementById( "repeat-checkbox" );
var numberRadio = document.getElementById("repeat-numberoftimes-radio");
var numberTextBox = document.getElementById("repeat-numberoftimes-textbox");
var repeatEndText = document.getElementById( "repeat-end-date-picker" );
if( repeatCheckBox.checked && repeatUntilRadio.selected )
if( repeatCheckBox.checked && numberRadio.selected )
{
repeatEndText.removeAttribute( "disabled" );
numberTextBox.removeAttribute( "disabled" );
}
else
{
repeatEndText.setAttribute( "disabled", "true" );
numberTextBox.setAttribute( "disabled", "true" );
}
var untilRadio = document.getElementById( "repeat-until-radio" );
var untilPicker = document.getElementById( "repeat-end-date-picker" );
if( repeatCheckBox.checked && untilRadio.selected )
{
untilPicker.removeAttribute( "disabled" );
}
else
{
untilPicker.setAttribute( "disabled", "true" );
}
}

Просмотреть файл

@ -521,31 +521,29 @@
disable-controller="repeat"
label="&newevent.forever.label;"
oncommand="commandUntil()"/>
<hbox>
<radio id="repeat-numberoftimes-radio"
disable-controller="repeat"
label="&newevent.numberoftimes.label;"
oncommand=""/>
<textbox id="repeat-numberoftimes-textbox"
disable-controller="repeat"/>
</hbox>
<vbox id="repeat-end-box" align="center">
<hbox>
<radio id="repeat-until-radio"
disable-controller="repeat"
label="&newevent.until.label;"
oncommand="commandUntil()"/>
<spacer id="until-spacer"/>
<datepicker id="repeat-end-date-picker"
disable-controller="repeat"
value=""
onchange="commandUntil()"/>
</hbox>
<label id="repeat-time-warning"
class="warning-text-class"
value="&newevent.recurend.warning;"
collapsed="true"/>
</vbox>
<hbox>
<radio id="repeat-numberoftimes-radio"
disable-controller="repeat"
label="&newevent.numberoftimes.label;"
oncommand="commandUntil()"/>
<textbox id="repeat-numberoftimes-textbox"
disable-controller="repeat"/>
</hbox>
<hbox>
<radio id="repeat-until-radio"
disable-controller="repeat"
label="&newevent.until.label;"
oncommand="commandUntil()"/>
<spacer id="until-spacer"/>
<datepicker id="repeat-end-date-picker"
disable-controller="repeat"
value=""
onchange="commandUntil()"/>
</hbox>
<label id="repeat-time-warning"
class="warning-text-class"
value="&newevent.recurend.warning;"
collapsed="true"/>
</radiogroup>
</hbox>