mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
issue 2524 upload button develop
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11485 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b334ae897b
commit
1b18dee0ce
1 changed files with 9 additions and 1 deletions
|
|
@ -559,22 +559,30 @@
|
|||
*/
|
||||
public function procMenuAdminButtonUpload()
|
||||
{
|
||||
$args = Context::gets('menu_normal_btn', 'menu_hover_btn', 'menu_active_btn', 'isNormalDelete', 'isHoverDelete', 'isActiveDelete', 'callback');
|
||||
$args = Context::getRequestVars();
|
||||
$btnOutput = $this->_uploadButton($args);
|
||||
|
||||
$oMenuAdminModel = &getAdminModel('menu');
|
||||
$item_info = $oMenuAdminModel->getMenuItemInfo($args->menu_item_srl);
|
||||
|
||||
if($btnOutput['normal_btn'])
|
||||
{
|
||||
$this->add('normal_btn', $btnOutput['normal_btn']);
|
||||
$item_info->normal_btn = $btnOutput['normal_btn'];
|
||||
}
|
||||
if($btnOutput['hover_btn'])
|
||||
{
|
||||
$this->add('hover_btn', $btnOutput['hover_btn']);
|
||||
$item_info->hover_btn = $btnOutput['hover_btn'];
|
||||
}
|
||||
if($btnOutput['active_btn'])
|
||||
{
|
||||
$this->add('active_btn', $btnOutput['active_btn']);
|
||||
$item_info->active_btn = $btnOutput['active_btn'];
|
||||
}
|
||||
|
||||
$output = executeQuery('menu.updateMenuItem', $item_info);
|
||||
|
||||
$oJsonHandler = new JSONDisplayHandler();
|
||||
$resultJson = $oJsonHandler->toDoc($this);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue