diff --git a/module/doc/view/lefttree.html.php b/module/doc/view/lefttree.html.php
index 59ce20243b..55b23436b7 100644
--- a/module/doc/view/lefttree.html.php
+++ b/module/doc/view/lefttree.html.php
@@ -85,7 +85,7 @@
doc->libDropdown['addSameModule'];?>
doc->libDropdown['addSubModule'];?>
- '>doc->libDropdown['editModule'];?>
+ rawModule");?>'>doc->libDropdown['editModule'];?>
' target='hiddenwin'>doc->libDropdown['delModule'];?>
@@ -364,10 +364,12 @@ $(function()
var item = $(this).data();
if($(this).hasClass('edit-module'))
{
+ var link = $(this).find('a').data('href');
+ if(typeof(moduleData.moduleType) != 'undefined' && moduleData.moduleType == 'api') link = link.replace('doc', 'api');
new $.zui.ModalTrigger({
keyboard : true,
type : 'ajax',
- url : $(this).find('a').data('href')
+ url : link
}).show();
}
if(item.type !== 'add') return;
diff --git a/module/tree/control.php b/module/tree/control.php
index 7686ba0747..eb33b2ce0b 100644
--- a/module/tree/control.php
+++ b/module/tree/control.php
@@ -387,7 +387,6 @@ class tree extends control
if(!empty($_POST))
{
$this->tree->update($moduleID);
- echo js::alert($this->lang->tree->successSave);
die(js::reload('parent'));
}