issue 2596 add JS_CALLBACK method

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11785 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2012-10-18 13:00:58 +00:00
parent df3ab6417c
commit 4782819765

View file

@ -502,7 +502,7 @@
$procResult = $oModule->proc();
$methodList = array('XMLRPC'=>1, 'JSON'=>1);
$methodList = array('XMLRPC'=>1, 'JSON'=>1, 'JS_CALLBACK'=>1);
if(!$oModule->stop_proc && !isset($methodList[Context::getRequestMethod()]))
{
$error = $oModule->getError();
@ -599,7 +599,7 @@
if(!$output->toBool()) $this->error = $output->getMessage();
// Use message view object, if HTML call
$methodList = array('XMLRPC'=>1, 'JSON'=>1);
$methodList = array('XMLRPC'=>1, 'JSON'=>1, 'JS_CALLBACK'=>1);
if(!isset($methodList[Context::getRequestMethod()])) {
if($_SESSION['XE_VALIDATOR_RETURN_URL'])