From 71424746da5ddf138e893d48470b832a6ecd7d25 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 9 Mar 2013 07:30:56 +0000 Subject: [PATCH] upon add/edit/remove annotation, clear complete cache --- static/js/pandora/editor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/pandora/editor.js b/static/js/pandora/editor.js index 0c8ca3b78..54a0c11e1 100644 --- a/static/js/pandora/editor.js +++ b/static/js/pandora/editor.js @@ -89,7 +89,7 @@ pandora.ui.editor = function(data) { event: {start: '', end: ''} } : {} )); - Ox.Request.clearCache('findAnnotations'); + Ox.Request.clearCache(); }); }, annotationsfont: function(data) { @@ -128,7 +128,7 @@ pandora.ui.editor = function(data) { result.data.modified.slice(0, 10), '%B %e, %Y' ); that.updateAnnotation(data.id, result.data); - Ox.Request.clearCache('findAnnotations'); + Ox.Request.clearCache(); }; if (data.id[0] == '_') { pandora.api.addAnnotation({ @@ -220,7 +220,7 @@ pandora.ui.editor = function(data) { }, function(result) { //fixme: check for errors //that.removeAnnotation(data.layer, data.id); - Ox.Request.clearCache('findAnnotations'); + Ox.Request.clearCache(); }); }, resize: function(data) {