R
ragtek
Guest
I'm having a Button in a form, which opens a overlay.
It's working fine if the controller returns the form.
BUT in some cases, the controllers makes an redirect to an other page, instead of sending the overlay back.
Is there any way of "stopping" the overlay and redirecting the browser?
It's working fine if the controller returns the form.
BUT in some cases, the controllers makes an redirect to an other page, instead of sending the overlay back.
Is there any way of "stopping" the overlay and redirecting the browser?
PHP:
protected function _redirect($language_id, $phrasePrefix){
$link = 'admin.php?language_id=' . $language_id .
'&title=' . $phrasePrefix . '&phrase_state[]=default&phrase_state[]=inherited&phrase_state[]=custom&search=1&_=phrases%2Fsearch';
return $this->responseRedirect(
XenForo_ControllerResponse_Redirect::SUCCESS,
$link
);
}
...
function ...(){
if (count($languages) == 1){
return $this->_redirect($language['language_id'], $phrasePrefix);
}
$viewParams = array(
'languages' => $output,
'phrasePrefix' => $phrasePrefix,
);
return $this->responseView('', 'ragtek_fw_languagechooser', $viewParams);