diff --git a/module/product/control.php b/module/product/control.php
index e50f83637d..a21f07c06e 100644
--- a/module/product/control.php
+++ b/module/product/control.php
@@ -558,11 +558,12 @@ class product extends control
$output = html::select($field, $plans, $planID, "class='form-control chosen'");
if(count($plans) == 1 and $needCreate)
{
- $output .= "";
- $output .= html::a($this->createLink('productplan', 'create', "productID=$productID&branch=$branch"), $this->lang->productplan->create, '_blank');
- $output .= ' ';
- $output .= html::a("javascript:loadProductPlans($productID)", $this->lang->refresh);
- $output .= '';
+ $output .= "
";
+ $output .= html::a($this->createLink('productplan', 'create', "productID=$productID&branch=$branch", '', true), "", '', "class='btn btn-icon' data-toggle='modal' data-type='iframe' data-width='95%' title='{$this->lang->productplan->create}'");
+ $output .= '
';
+ $output .= "";
+ $output .= html::a("#", "", '', "class='btn btn-icon refresh' data-toggle='tooltip' title='{$this->lang->refresh}' onclick='loadProductPlans($productID)'");
+ $output .= '
';
}
die($output);
}
diff --git a/module/product/view/create.html.php b/module/product/view/create.html.php
index 4e754f784b..f8e4c1c16d 100644
--- a/module/product/view/create.html.php
+++ b/module/product/view/create.html.php
@@ -38,9 +38,9 @@
if(count($lines) == 1)
{
echo "";
- echo html::a($this->createLink('tree', 'browse', "rootID=$rootID&view=line"), $lang->tree->manageLine, '_blank');
+ echo html::a($this->createLink('tree', 'browse', "rootID=$rootID&view=line", '', true), $lang->tree->manageLine, '', "class='text-primary' data-toggle='modal' data-type='iframe' data-width='95%'");
echo ' ';
- echo html::a("javascript:loadProductLines({$rootID})", $lang->refresh, '', "class='refresh'");
+ echo html::a("#", $lang->refresh, '', "class='refresh' onclick='loadProductLines($rootID)'");
echo '';
}
?>
diff --git a/module/tree/control.php b/module/tree/control.php
index 202bd98aa5..01147a880a 100644
--- a/module/tree/control.php
+++ b/module/tree/control.php
@@ -296,6 +296,9 @@ class tree extends control
if(!empty($_POST))
{
$this->tree->manageChild($rootID, $viewType);
+
+ if(isonlybody()) die(js::closeModal('parent.parent', '', "function(){parent.parent.$('a.refresh').click()}"));
+
die(js::reload('parent'));
}
}
@@ -357,9 +360,9 @@ class tree extends control
if(count($optionMenu) == 1 and $needManage)
{
$output .= "";
- $output .= html::a($this->createLink('tree', 'browse', "rootID=$rootID&view=$viewType¤tModuleID=0&branch=$branch"), $viewType == 'line' ? $this->lang->tree->manageLine : $this->lang->tree->manage, '_blank');
+ $output .= html::a($this->createLink('tree', 'browse', "rootID=$rootID&view=$viewType¤tModuleID=0&branch=$branch", '', true), $viewType == 'line' ? $this->lang->tree->manageLine : $this->lang->tree->manage, '', "class='text-primary' data-toggle='modal' data-type='iframe' data-width='95%'");
$output .= ' ';
- $output .= $viewType == 'line' ? html::a("javascript:loadProductLines($rootID)", $this->lang->refresh) : html::a("javascript:loadProductModules($rootID)", $this->lang->refresh);
+ $output .= $viewType == 'line' ? html::a("#", $this->lang->refresh, '', "class='refresh' onclick='loadProductLines($rootID)'") : html::a("#", $this->lang->refresh, '', "class='refresh' onclick='loadProductModules($rootID)'");
$output .= '';
}
die($output);
diff --git a/module/tree/css/common.css b/module/tree/css/common.css
index c17a5ec478..4ca130302a 100644
--- a/module/tree/css/common.css
+++ b/module/tree/css/common.css
@@ -17,3 +17,5 @@
#modulesTree li > .list-toggle {top: 0}
#childrenForm table tr > td.text-middle span{display:block; float:left;}
+
+.body-modal #mainMenu{display: none;}
diff --git a/module/tree/view/browse.html.php b/module/tree/view/browse.html.php
index a87480bb5a..70c0bfc61b 100644
--- a/module/tree/view/browse.html.php
+++ b/module/tree/view/browse.html.php
@@ -22,7 +22,8 @@
-
+ name;?>
+