mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
_rx_ajax_form 파라미터로 폼 제출 종류를 구분할 수 있도록 변경
This commit is contained in:
parent
085b74b7db
commit
3efc2a6b13
3 changed files with 8 additions and 10 deletions
|
|
@ -945,7 +945,7 @@ class ModuleHandler extends Handler
|
|||
if(!isset($methodList[Context::getRequestMethod()]))
|
||||
{
|
||||
// Handle iframe form submissions.
|
||||
if(isset($_POST['_rx_target_iframe']) && starts_with('_rx_temp_', $_POST['_rx_target_iframe']))
|
||||
if(isset($_POST['_rx_ajax_form']) && starts_with('_rx_temp_iframe_', $_POST['_rx_ajax_form']))
|
||||
{
|
||||
$script = '';
|
||||
if(!$oModule->toBool())
|
||||
|
|
@ -964,7 +964,7 @@ class ModuleHandler extends Handler
|
|||
}
|
||||
}
|
||||
ob_end_clean();
|
||||
echo sprintf('<html><head></head><body><script>%s window.parent.remove_iframe(%s);</script></body></html>', $script, json_encode($_POST['_rx_target_iframe']));
|
||||
echo sprintf('<html><head></head><body><script>%s window.parent.remove_iframe(%s);</script></body></html>', $script, json_encode($_POST['_rx_ajax_form']));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue