From ceb8298289a90749dc1f7f1d510f0581380df215 Mon Sep 17 00:00:00 2001 From: "mostafah%oeone.com" Date: Thu, 4 Mar 2004 15:14:10 +0000 Subject: [PATCH] Checked in patch for bug 230828: multiple calendars subscribed can cause overwrite in "subscribed calendars" box --- calendar/resources/content/calendarManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/resources/content/calendarManager.js b/calendar/resources/content/calendarManager.js index 0a21e586f456..65523f96cc37 100644 --- a/calendar/resources/content/calendarManager.js +++ b/calendar/resources/content/calendarManager.js @@ -351,7 +351,7 @@ calendarManager.prototype.nextCalendar = function calMan_getNextCalendar() for (var count = 0; count < seq.length; count++ ) { subject = seq[count].getSubject(); subject = subject.replace(/^.*calendar(\d+)$/, "$1"); - if (subject > max) max = subject; + if (Number(subject) > max) max = Number(subject); } return ++max;