Quantcast
Channel: Refresh page after closing modal opened by .crm-popup outside of CiviCRM - CiviCRM Stack Exchange
Viewing all articles
Browse latest Browse all 3

Refresh page after closing modal opened by .crm-popup outside of CiviCRM

$
0
0

We've a page (in Drupal) outside of CiviCRM for "editors" (mean, users with restricted permissions) to perform some civicrm tasks.

From this page civicrm forms is being opened in modal frame via .crm-popup class added to form open links. There are also hooks being used (_pre and _postProcess) for these forms.

Drupal page should be refreshed after form submit (in order to show editors their edits); but each form submit summons a js status message CRM_Core_Session::setStatus(ts('Your information has been saved.'), ts('Thank you.'), 'success'); from civicrm\CRM\Profile\Form\Edit.php.

And we're lost in how (mean, where would be a right place) to add something like location.reload which, ideally, should be fired right after status message close. Or, may be, it should be added at hook_postProcess level via "header(refresh)" (we've made some attempts doing this and failed though)?

Any clue form true js / jquery experts, please!


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images