- remove redundant code.

This commit is contained in:
zhujinyong
2012-12-12 09:30:52 +00:00
parent 272897c294
commit 94e3c1bbb2

View File

@@ -264,8 +264,6 @@ class tree extends control
*/
public function ajaxGetOptionMenu($rootID, $viewType = 'story', $rootModuleID = 0, $returnType = 'html')
{
$this->view->productModules = $this->tree->getOptionMenu($rootID, 'story');
$optionMenu = $this->tree->getOptionMenu($rootID, $viewType, $rootModuleID);
if($returnType == 'html') die( html::select("module", $optionMenu, '', 'onchange=setAssignedTo()'));
if($returnType == 'json') die(json_encode($optionMenu));