mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 19:51:42 +09:00
issue 2506 when add menu item, return json page after proc
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11383 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3008a568a7
commit
47876992f3
2 changed files with 14 additions and 4 deletions
|
|
@ -33,8 +33,10 @@
|
|||
* Initialization
|
||||
* @return void
|
||||
*/
|
||||
function init() {
|
||||
}
|
||||
function init()
|
||||
{
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a menu
|
||||
|
|
@ -356,8 +358,13 @@
|
|||
|
||||
if($isProc)
|
||||
{
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispMenuAdminSiteMap', 'menu_srl', $args->menu_srl);
|
||||
$this->setRedirectUrl($returnUrl);
|
||||
/*$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispMenuAdminSiteMap', 'menu_srl', $args->menu_srl);
|
||||
$this->setRedirectUrl($returnUrl);*/
|
||||
$oJsonHandler = new JSONDisplayHandler();
|
||||
$resultJson = $oJsonHandler->toDoc($this);
|
||||
|
||||
Context::set('resultJson', $resultJson);
|
||||
$this->setTemplateFile('callback');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
3
modules/menu/tpl/callback.html
Normal file
3
modules/menu/tpl/callback.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<script>
|
||||
function {$callback} ('{$resultJson}');
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue