* finish task #2341.

This commit is contained in:
wangyidong
2015-10-22 16:38:39 +08:00
parent 333b0be157
commit df23f3b43e
27 changed files with 213 additions and 91 deletions
+9
View File
@@ -47,5 +47,14 @@ class branch extends control
$this->view->keywords = $keywords;
$this->display();
}
public function ajaxGetBranches($productID)
{
$product = $this->loadModel('product')->getById($productID);
if($product->type == 'normal') die();
$branches = $this->branch->getPairs($productID);
die(html::select('branch[]', $branches, '', "class='form-control'"));
}
}