mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Fixing bug with changing to dialog instead of window tag.
This commit is contained in:
parent
937bd61088
commit
aacd198d7a
@ -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 ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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" );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -56,7 +56,7 @@
|
||||
|
||||
|
||||
<dialog
|
||||
id="calendar-new-eventwindow"
|
||||
id="calendar-new-taskwindow"
|
||||
title="Calendar Event"
|
||||
buttons="accept,cancel"
|
||||
ondialogaccept="return onOKCommand();"
|
||||
|
@ -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 ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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" );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -56,7 +56,7 @@
|
||||
|
||||
|
||||
<dialog
|
||||
id="calendar-new-eventwindow"
|
||||
id="calendar-new-taskwindow"
|
||||
title="Calendar Event"
|
||||
buttons="accept,cancel"
|
||||
ondialogaccept="return onOKCommand();"
|
||||
|
Loading…
Reference in New Issue
Block a user