* Adjust code .
This commit is contained in:
@@ -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');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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;?>
|
||||
|
||||
Reference in New Issue
Block a user