Fixing bug with changing to dialog instead of window tag.

This commit is contained in:
mikep%oeone.com 2002-09-04 15:21:08 +00:00
parent 937bd61088
commit aacd198d7a
6 changed files with 10 additions and 12 deletions

View File

@ -270,7 +270,7 @@ function loadCalendarEventDialog()
{
document.getElementById( "server-field" ).appendItem(serverList[i].name, serverList[i].path);
if( serverList[i].remote == true && serverList[i].path == gEvent.parent.server )
document.getElementById( "ok" ).setAttribute( "disabled", "true" );
document.getElementById( "calendar-new-eventwindow" ).getButton( "accept" ).setAttribute( "disabled", "true" );
}
}
//if the server
@ -519,7 +519,7 @@ function updateOKButton()
var CheckRecurTime = checkRecurTime();
document.getElementById( "ok" ).setAttribute( "disabled", !( CheckEndTime && CheckRecurTime ) );
document.getElementById( "calendar-new-eventwindow" ).getButton( "accept" ).setAttribute( "disabled", !( CheckEndTime && CheckRecurTime ) );
}
/**

View File

@ -351,7 +351,7 @@ function checkStartAndDueDates()
//show alert message, disable OK button
document.getElementById( "start-date-warning" ).removeAttribute( "collapsed" );
document.getElementById( "ok" ).setAttribute( "disabled", true );
document.getElementById( "calendar-new-taskwindow" ).getButton( "accept" ).setAttribute( "disabled", true );
}
else
{
@ -359,8 +359,7 @@ function checkStartAndDueDates()
document.getElementById( "start-date-warning" ).setAttribute( "collapsed", true );
document.getElementById( "ok" ).removeAttribute( "disabled" );
document.getElementById( "calendar-new-taskwindow" ).getButton( "accept" ).removeAttribute( "disabled" );
}
}

View File

@ -56,7 +56,7 @@
<dialog
id="calendar-new-eventwindow"
id="calendar-new-taskwindow"
title="Calendar Event"
buttons="accept,cancel"
ondialogaccept="return onOKCommand();"

View File

@ -270,7 +270,7 @@ function loadCalendarEventDialog()
{
document.getElementById( "server-field" ).appendItem(serverList[i].name, serverList[i].path);
if( serverList[i].remote == true && serverList[i].path == gEvent.parent.server )
document.getElementById( "ok" ).setAttribute( "disabled", "true" );
document.getElementById( "calendar-new-eventwindow" ).getButton( "accept" ).setAttribute( "disabled", "true" );
}
}
//if the server
@ -519,7 +519,7 @@ function updateOKButton()
var CheckRecurTime = checkRecurTime();
document.getElementById( "ok" ).setAttribute( "disabled", !( CheckEndTime && CheckRecurTime ) );
document.getElementById( "calendar-new-eventwindow" ).getButton( "accept" ).setAttribute( "disabled", !( CheckEndTime && CheckRecurTime ) );
}
/**

View File

@ -351,7 +351,7 @@ function checkStartAndDueDates()
//show alert message, disable OK button
document.getElementById( "start-date-warning" ).removeAttribute( "collapsed" );
document.getElementById( "ok" ).setAttribute( "disabled", true );
document.getElementById( "calendar-new-taskwindow" ).getButton( "accept" ).setAttribute( "disabled", true );
}
else
{
@ -359,8 +359,7 @@ function checkStartAndDueDates()
document.getElementById( "start-date-warning" ).setAttribute( "collapsed", true );
document.getElementById( "ok" ).removeAttribute( "disabled" );
document.getElementById( "calendar-new-taskwindow" ).getButton( "accept" ).removeAttribute( "disabled" );
}
}

View File

@ -56,7 +56,7 @@
<dialog
id="calendar-new-eventwindow"
id="calendar-new-taskwindow"
title="Calendar Event"
buttons="accept,cancel"
ondialogaccept="return onOKCommand();"