* Adjust code .

This commit is contained in:
guofeilong
2023-03-23 16:30:31 +08:00
parent dc4a0cc915
commit 6a3eb1dcab
2 changed files with 9 additions and 1 deletions
+8 -1
View File
@@ -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');
}
});
});
});
+1
View File
@@ -14,6 +14,7 @@
<?php js::set('treeData', $libTree);?>
<?php js::set('linkParams', "type=$type&objectID=$objectID%s&browseType=&orderBy=$orderBy");?>
<?php js::set('docLang', $lang->doc);?>
<?php js::set('objectType', $type);?>
<div id="mainMenu" class="clearfix">
<div id="leftBar" class="btn-toolbar pull-left">
<?php echo $objectDropdown;?>