Checked in patch for bug 215259: Calendar color reset to default when edit window is opened.

git-svn-id: svn://10.0.0.236/trunk@149828 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mostafah%oeone.com
2003-11-28 22:14:58 +00:00
parent 3eb5764b88
commit d9a8589c36

View File

@@ -21,6 +21,7 @@
* Contributor(s): Mike Potter <mikep@oeone.com>
* Eric Belhaire <belhaire@ief.u-psud.fr>
* Matthew Buckett <buckett@bumph.org>
* Mike Loll <michaelloll@hotmail.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
@@ -289,7 +290,15 @@ calendarManager.prototype.addServerDialogResponse = function calMan_addServerDia
node.setAttribute("http://home.netscape.com/NC-rdf#path", CalendarObject.path);
// CofC save off the color of the new calendar
node.setAttribute("http://home.netscape.com/NC-rdf#color", CalendarObject.color);
// Add the default color for when a user does not select a calendar color.
if( CalendarObject.color == '' )
{
node.setAttribute("http://home.netscape.com/NC-rdf#color", "#F9F4FF");
}
else
{
node.setAttribute("http://home.netscape.com/NC-rdf#color", CalendarObject.color);
}
if( CalendarObject.remotePath.indexOf( "http://" ) != -1 ||
CalendarObject.remotePath.indexOf( "https://" ) != -1 ||