* finish task #2377.
This commit is contained in:
@@ -30,7 +30,6 @@ class tree extends control
|
||||
$product = $this->loadModel('product')->getById($rootID);
|
||||
if($product->type != 'normal') $this->view->branches = $this->loadModel('branch')->getPairs($product->id);
|
||||
$this->view->root = $product;
|
||||
$this->view->productModules = $this->tree->getOptionMenu($rootID, 'story');
|
||||
}
|
||||
/* The viewType is doc. */
|
||||
elseif(strpos($viewType, 'doc') !== false)
|
||||
@@ -65,6 +64,7 @@ class tree extends control
|
||||
|
||||
$this->view->allProduct = $products;
|
||||
$this->view->currentProduct = $currentProduct;
|
||||
$this->view->productModules = $this->tree->getOptionMenu($currentProduct, 'story');
|
||||
|
||||
$title = $product->name . $this->lang->colon . $this->lang->tree->manageProduct;
|
||||
$position[] = html::a($this->createLink('product', 'browse', "product=$rootID"), $product->name);
|
||||
|
||||
@@ -22,7 +22,7 @@ function syncModule(rootID, type)
|
||||
{
|
||||
if(value)
|
||||
{
|
||||
$('#sonModule .input-group:last').after($inputgroup);
|
||||
$('#sonModule').append($inputgroup);
|
||||
$('#sonModule .input-group:last input').val(value);
|
||||
}
|
||||
})
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
echo html::input("modules[]", '', 'class="form-control"');
|
||||
if($hasBranch) echo '<span class="input-group-addon fix-border" style="padding:0px"></span>' . html::select("branch[]", $branches, $branch, 'class="form-control"');
|
||||
echo "<span class='input-group-addon fix-border'><a href='javascript:;' onclick='addItem(this)'><i class='icon icon-plus'></i></a></span>";
|
||||
echo "<span class='input-group-addon fix-border'><a href='javascript:;' onclick='deleteItem(this)'><i class='icon icon-remove'></i></a></span>";
|
||||
echo "<span class='input-group-addon'><a href='javascript:;' onclick='deleteItem(this)'><i class='icon icon-remove'></i></a></span>";
|
||||
echo '</div>';
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user