clear cache on add/edit/remove annotation (may fix 1409)
This commit is contained in:
parent
3e99e43015
commit
3ed3f9c882
1 changed files with 3 additions and 0 deletions
|
@ -89,6 +89,7 @@ pandora.ui.editor = function(data) {
|
||||||
event: {start: '', end: ''}
|
event: {start: '', end: ''}
|
||||||
} : {}
|
} : {}
|
||||||
));
|
));
|
||||||
|
Ox.Request.clearCache('findAnnotations');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
annotationsfont: function(data) {
|
annotationsfont: function(data) {
|
||||||
|
@ -127,6 +128,7 @@ pandora.ui.editor = function(data) {
|
||||||
result.data.modified.slice(0, 10), '%B %e, %Y'
|
result.data.modified.slice(0, 10), '%B %e, %Y'
|
||||||
);
|
);
|
||||||
that.updateAnnotation(data.id, result.data);
|
that.updateAnnotation(data.id, result.data);
|
||||||
|
Ox.Request.clearCache('findAnnotations');
|
||||||
};
|
};
|
||||||
if (data.id[0] == '_') {
|
if (data.id[0] == '_') {
|
||||||
pandora.api.addAnnotation({
|
pandora.api.addAnnotation({
|
||||||
|
@ -218,6 +220,7 @@ pandora.ui.editor = function(data) {
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
//fixme: check for errors
|
//fixme: check for errors
|
||||||
//that.removeAnnotation(data.layer, data.id);
|
//that.removeAnnotation(data.layer, data.id);
|
||||||
|
Ox.Request.clearCache('findAnnotations');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
resize: function(data) {
|
resize: function(data) {
|
||||||
|
|
Loading…
Reference in a new issue