Is it possible to refresh an element's list when closing a modal? I have a modal ready with:
onHide : function(){
//but all what I tried doesn't work here
//1: This will do the trick, but there is some bug with "Double-instantiating a select on an element" then the check box for the actions appear multiple times.
Craft.elementIndex = Craft.createElementIndex('Plugin_ElementType', $('#main'), {
context: 'index',
storageKey: 'elementindex.Plugin_ElemenetType'
});
//2 I was searching for some global function as updateElements
something like this: Craft.cp.updateElements()
or: Craft.Plugin_ElementType.updateElements(); but no success
}
I need this because in that modal I change, delete data from my elements so I have to update the list, if is possible without to reload the page of course. Thank you in advance!