<?php
/**
 * [PHPFOX_HEADER]
 */

defined('PHPFOX') or exit('NO DICE!');

/**
 * 
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package  		Module_Admincp
 * @version 		$Id: ajax.class.php 225 2009-02-13 13:24:59Z Raymond_Benc $
 */
class Admincp_Component_Ajax_Module_Ajax extends Phpfox_Ajax
{
	public function deleteMenu()
	{
		Phpfox::isUser(true);
		Phpfox::getUserParam('language.can_manage_lang_packs', true);
		
		if (Admincp_Service_Module_Process::instance()->deleteMenu($this->get('id'), $this->get('var')))
		{
			$this->call("$('#jsmenu_" . $this->get('var') . "').hide();");
		}
	}
}