зеркало из https://github.com/mozilla/pjs.git
disabled freebusy for tasks
This commit is contained in:
Родитель
0b031c772d
Коммит
b09925fac0
|
@ -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);
|
||||
|
|
|
@ -365,7 +365,10 @@
|
|||
|
||||
<constructor>
|
||||
<![CDATA[
|
||||
if (isToDo(window.calendarItem))
|
||||
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);
|
||||
|
@ -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;
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче