Skip to content

Commit

Permalink
task sync and strict mode error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bavincen committed Apr 13, 2016
1 parent d8b201b commit 5db3c8d
Show file tree
Hide file tree
Showing 13 changed files with 115 additions and 582 deletions.
9 changes: 8 additions & 1 deletion chrome/content/attachments-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,13 @@ exchAttachments.prototype = {

var taskTree = this._document.getElementById("calendar-task-tree");
var item = taskTree.currentTask;

var displayElement=function(id,flag) {
setBooleanAttribute(id, "hidden", !flag);
return flag;
}
if (displayElement("calendar-task-details-container", item != null) &&
displayElement("calendar-task-view-splitter", item != null)) {

if ((item.calendar) && (item.calendar.type == "exchangecalendar")) {
// calendar-task-view (hide existing attachment view)
//this.globalFunctions.LOG("exchWebService.attachments.onSelectTask: it is an Exchange task 1.");
Expand Down Expand Up @@ -370,6 +376,7 @@ exchAttachments.prototype = {
catch (ex) {this.globalFunctions.LOG("exchWebService.attachments.onSelectTask: Foutje Y:");}
this.attachmentListboxVisible = false;
}
}
},

onSelect: function _onSelect(aEvent)
Expand Down
6 changes: 3 additions & 3 deletions chrome/content/calendar-common-sets2.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ function newOpenEventDialog(calendarItem, calendar, mode, callback, job, initial
if (mode == "new") {
calendars = calendars.filter(userCanAddItemsToCalendar);
} else { /* modify */
function calendarCanModifyItems(aCalendar) {

calendars = calendars.filter(function calendarCanModifyItems(aCalendar) {
/* If the calendar is the item calendar, we check that the item
* can be modified. If the calendar is NOT the item calendar, we
* check that the user can remove items from that calendar and
Expand All @@ -65,8 +66,7 @@ function newOpenEventDialog(calendarItem, calendar, mode, callback, job, initial
&& userCanAddItemsToCalendar(aCalendar))
|| ((calendarItem.calendar == aCalendar)
&& userCanModifyItem(calendarItem)));
}
calendars = calendars.filter(calendarCanModifyItems);
});
}

if (mode == "new"
Expand Down
Loading

0 comments on commit 5db3c8d

Please sign in to comment.