diff --git a/module/doc/js/tablecontents.js b/module/doc/js/tablecontents.js index 46de6e0dd5..5c48f0a671 100644 --- a/module/doc/js/tablecontents.js +++ b/module/doc/js/tablecontents.js @@ -294,10 +294,17 @@ $(function() }); return false; } - var module = result.module; + var module = result.module; var resultDom = $('[data-id=aTreeModal]').html().replace(/%name%/g, module.name).replace(/%id%/g, module.id).replace('insert', module.id); $this.parent().append(resultDom); $this.remove(); + if(moduleData.isUpdate) + { + $.getJSON(createLink('doc', 'tableContents', 'type=' + objectType, 'json'), {}, function(data){ + var treeData = JSON.parse(data.data); + $('#fileTree').data('zui.tree').reload(treeData.libTree); + }, 'json'); + } }); }); }); diff --git a/module/doc/view/tablecontents.html.php b/module/doc/view/tablecontents.html.php index 8789f41f4a..7ffd9e9943 100644 --- a/module/doc/view/tablecontents.html.php +++ b/module/doc/view/tablecontents.html.php @@ -14,6 +14,7 @@ doc);?> +