From b22b8c97d5a7500591b3c576e162cf801075e99c Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 22 Dec 2014 22:21:59 +0000 Subject: [PATCH] delete entitiesDialog on close --- static/js/entitiesDialog.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/static/js/entitiesDialog.js b/static/js/entitiesDialog.js index 486ef58cc..3387c8a6a 100644 --- a/static/js/entitiesDialog.js +++ b/static/js/entitiesDialog.js @@ -292,6 +292,13 @@ pandora.ui.entitiesDialog = function(options) { } }); + that.superClose = that.close; + that.close = function() { + Ox.Request.clearCache('findEntities'); + that.superClose(); + delete pandora.$ui.documentsDialog; + }; + selectEntities(); function addEntity() {