mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Adjust order of error message and redirect when using rx_ajax
This commit is contained in:
parent
069d09c20f
commit
4ed6445d9b
1 changed files with 6 additions and 6 deletions
|
|
@ -943,18 +943,18 @@ class ModuleHandler extends Handler
|
|||
// Handle iframe form submissions.
|
||||
if(isset($_POST['_rx_target_iframe']) && starts_with('_rx_temp_', $_POST['_rx_target_iframe']))
|
||||
{
|
||||
if($this->error && $this->error !== 'success')
|
||||
{
|
||||
ob_end_clean();
|
||||
echo sprintf('<html><head></head><body><script> window.parent.alert(%s); window.parent.remove_iframe(%s); </script></body></html>', json_encode($this->error), json_encode($_POST['_rx_target_iframe']));
|
||||
return;
|
||||
}
|
||||
if($_SESSION['XE_VALIDATOR_RETURN_URL'])
|
||||
{
|
||||
ob_end_clean();
|
||||
echo sprintf('<html><head></head><body><script> window.parent.redirect(%s); </script></body></html>', json_encode($_SESSION['XE_VALIDATOR_RETURN_URL']));
|
||||
return;
|
||||
}
|
||||
if($this->error)
|
||||
{
|
||||
ob_end_clean();
|
||||
echo sprintf('<html><head></head><body><script> window.parent.alert(%s); window.parent.remove_iframe(%s); </script></body></html>', json_encode($this->error), json_encode($_POST['_rx_target_iframe']));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Handle redirects.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue