mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
form rx_ajax 사용시 XE_VALIDATOR_MESSAGE 세션을 이용한 메세지 표시가 되지 않는 문제 수정
This commit is contained in:
parent
9cfd4ca363
commit
9e6005ccbc
3 changed files with 3 additions and 2 deletions
|
|
@ -165,6 +165,7 @@ class Context
|
|||
*/
|
||||
private static $_reserved_keys = array(
|
||||
'_rx_ajax_compat' => true,
|
||||
'_rx_ajax_form' => true,
|
||||
'_rx_csrf_token' => true,
|
||||
'_rx_target_iframe' => true,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -807,7 +807,7 @@ class ModuleHandler extends Handler
|
|||
$procResult = $oModule->proc();
|
||||
|
||||
$methodList = array('XMLRPC' => 1, 'JSON' => 1, 'JS_CALLBACK' => 1);
|
||||
if(!$oModule->stop_proc && !isset($methodList[Context::getRequestMethod()]))
|
||||
if(!$oModule->stop_proc && (!isset($methodList[Context::getRequestMethod()]) || isset($_POST['_rx_ajax_form'])))
|
||||
{
|
||||
$error = $oModule->getError();
|
||||
$message = $oModule->getMessage();
|
||||
|
|
|
|||
|
|
@ -402,7 +402,7 @@
|
|||
}, 1000);
|
||||
form.submit();
|
||||
} else {
|
||||
window.exec_json('raw', form.serialize(), callback_success, callback_error);
|
||||
window.exec_json('raw', form.serialize() + '&_rx_ajax_form=1', callback_success, callback_error);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue