Hi,
What I have
- a view on a panelpage is listing some nodes (see screenshot 01)
- The "edit" and "delete" link should appear in a modal. I'm using [login to view URL] for that.
What I need
- the view on the parent page should be refreshed after closing the modal.
You should alter the automodal function for this refresh in a small module. (Have a look at [login to view URL])
Maybe with a new setting "refresh view". Or you ajaxyfy the form in some other way, in oder to use the [login to view URL] module.
function automodal_addons_automodal_alter(&$settings, $selector) {
if ($selector == '.automodal-delete') {
$settings['automodalReload'] = TRUE;
$settings['width'] = 700;
$settings['refresh view'] = array(
viewname: myview,
display-id: view-pane-2,
);
}}
function automodal_addons_init() {
automodal_add('.views-field-delete-node a', array(
'width' => 300, ['refresh view'] = array(
viewname: myview,
display-id: view-pane-2,
);));
automodal_add('.views-field-edit-node a', array('width' => 300));
}