bug 334070 Views don't care about mBatchCount patch by jminta, r=dmose

This commit is contained in:
mattwillis%gmail.com 2006-05-13 20:05:04 +00:00
parent d0e5590d85
commit 3a6b9b67a6
2 changed files with 18 additions and 0 deletions

View File

@ -1263,6 +1263,9 @@
this.calView.refresh();
},
onAddItem: function (aItem) {
if (this.mBatchCount) {
return;
}
var occs = aItem.getOccurrencesBetween(this.calView.startDate,
this.calView.queryEndDate,
{});
@ -1270,6 +1273,9 @@
this.calView.doAddItem(occ);
},
onModifyItem: function (aNewItem, aOldItem) {
if (this.mBatchCount) {
return;
}
var occs;
occs = aOldItem.getOccurrencesBetween(this.calView.startDate,
this.calView.queryEndDate,
@ -1284,6 +1290,9 @@
this.calView.doAddItem(occ);
},
onDeleteItem: function (aItem) {
if (this.mBatchCount) {
return;
}
var occs = aItem.getOccurrencesBetween(this.calView.startDate,
this.calView.queryEndDate,
{});

View File

@ -1688,6 +1688,9 @@
this.calView.refresh();
},
onAddItem: function onAddItem(aItem) {
if (this.mBatchCount) {
return;
}
//dump ("++ AddItem " + aItem + "\n");
if (!(aItem instanceof Components.interfaces.calIEvent))
return;
@ -1709,6 +1712,9 @@
return;
},
onModifyItem: function onModifyItem(aNewItem, aOldItem) {
if (this.mBatchCount) {
return;
}
//dump ("++ ModifyItem\n");
if (!(aOldItem instanceof Components.interfaces.calIEvent))
return;
@ -1734,6 +1740,9 @@
this.calView.readjust();
},
onDeleteItem: function onDeleteItem(aItem) {
if (this.mBatchCount) {
return;
}
//dump ("++ DeleteItem\n");
if (!(aItem instanceof Components.interfaces.calIEvent))
return;