I have a view which is a remote view. As a result, the content of the view is dynamic. I have a button on this dynamic view which opens a modal view to show some details. The details are dynamic and directly related to its parent remote view to which the modal view was opened from.
It appears ModalViews are cached like Views. So my dynamic content I am putting in them are never displayed as it pulls the modal view from cache after the initial load. How can I destroy/remove a ModalView?
I've been successful in removing Views from the cache before (see below) but I don't know how to retrieve/remove ModalViews in a similar manner.
It appears ModalViews are cached like Views. So my dynamic content I am putting in them are never displayed as it pulls the modal view from cache after the initial load. How can I destroy/remove a ModalView?
I've been successful in removing Views from the cache before (see below) but I don't know how to retrieve/remove ModalViews in a similar manner.
function
dataHide(e) {
var
div = $(
'#'
+ e.view.content.context.id);
if
(div) div.remove();
e.view.destroy();
}