disabled freebusy for tasks

This commit is contained in:
michael.buettner%sun.com 2006-07-31 14:48:47 +00:00
parent 9620e9f677
commit 382515e5a0
4 changed files with 26 additions and 14 deletions

View File

@ -1300,6 +1300,12 @@
<constructor>
<![CDATA[
var args = window.arguments[0];
var item = args.calendarEvent;
if (isToDo(item))
return;
var self = this;
var load = function loadHandler() { self.onLoad(); };
window.addEventListener("load", load, true);

View File

@ -365,9 +365,12 @@
<constructor>
<![CDATA[
if (isToDo(window.calendarItem))
return;
var args = window.arguments[0];
var item = args.calendarEvent;
if (isToDo(item))
return;
var pb2 = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch2);
// get default start/end times from prefs and set on the
@ -379,9 +382,6 @@
this.mEndHour = pb2.getIntPref("calendar.view.defaultendhour");
} catch (ex) {}
var args = window.arguments[0];
var item = args.calendarEvent;
// the basedate is the date/time from which the display
// of the timebar starts. the range is the number of days
// we should be able to show. the start- and enddate
@ -885,6 +885,12 @@
<constructor>
<![CDATA[
var args = window.arguments[0];
var item = args.calendarEvent;
if (isToDo(item))
return;
this.mRange = this.getAttribute("range");
this.mMaxFreeBusy = 0;

View File

@ -66,7 +66,7 @@ function onLoad()
updateTitle();
if (isToDo(window.calendarItem))
document.getElementById("timezone-tab").setAttribute("collapsed","true");
document.getElementById("attendees-tab").setAttribute("collapsed","true");
opener.setCursor("auto");

View File

@ -78,22 +78,22 @@
<!-- The Tabbox contains all the differents tabs -->
<tabbox id="dialog-tab" flex="1">
<tabs onselect="onTabSelected();">
<tab label="&event.tab.main.label;"/>
<tab label="&event.tab.recurrence.label;"/>
<tab label="&event.tab.attendees.label;"/>
<tab label="&event.tab.timezone.label;" collapsed="true"/>
<tab label="&event.tab.main.label;" id="main-tab"/>
<tab label="&event.tab.recurrence.label;" id="recurrence-tab"/>
<tab label="&event.tab.attendees.label;" id="attendees-tab"/>
<tab label="&event.tab.timezone.label;" id="timezone-tab" collapsed="true"/>
</tabs>
<tabpanels flex="1">
<tabpanel id="main-tab">
<tabpanel>
<main-page id="main-page" flex="1"/>
</tabpanel>
<tabpanel id="recurrence-tab">
<tabpanel>
<recurrence-page id="recurrence-page" flex="1" orient="vertical"/>
</tabpanel>
<tabpanel id="attendees-tab">
<tabpanel>
<attendees-page id="attendees-page" range="4" flex="1"/>
</tabpanel>
<tabpanel id="timezone-tab">
<tabpanel>
<timezone-page id="timezone-page" flex="1"/>
</tabpanel>
</tabpanels>