* adjust for code ajax send.
This commit is contained in:
@@ -907,6 +907,12 @@ class baseControl
|
||||
if($type != 'json') die();
|
||||
|
||||
$data = (array)$data;
|
||||
|
||||
/* Make sure locate in this tab. */
|
||||
global $lang;
|
||||
$moduleName = $this->app->rawModule;
|
||||
if(isset($lang->navGroup->{$moduleName}) and $lang->navGroup->{$moduleName} != $this->app->tab and isset($data['locate']) and $data['locate'][0] == '/') $data['locate'] .= "#app={$this->app->tab}";
|
||||
|
||||
if(helper::isAjaxRequest() or $this->viewType == 'json')
|
||||
{
|
||||
/* Process for zh-cn in json. */
|
||||
|
||||
Reference in New Issue
Block a user