mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
bug 334070 Views don't care about mBatchCount patch by jminta, r=dmose
This commit is contained in:
parent
d0e5590d85
commit
3a6b9b67a6
@ -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,
|
||||
{});
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user