Skip to content

Commit

Permalink
Module name fixed on Reports editview datatree
Browse files Browse the repository at this point in the history
  • Loading branch information
gymad committed Dec 14, 2015
1 parent 0dbb149 commit 691a84a
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions modules/AOR_Reports/tpls/EditViewFooter.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,14 @@
ParenthesisHandler.addParenthesisLineIdent();
};

var showTreeDataLeafs = function(treeDataLeafs, module) {
$('#module-name').html('(' + module + ')');
var showTreeDataLeafs = function(treeDataLeafs, module, module_name, module_path_display) {
if (typeof module_name == 'undefined' || !module_name) {
module_name = module;
}
if (typeof module_path_display == 'undefined' || !module_path_display) {
module_path_display = module_name;
}
$('#module-name').html('(<span title="' + module_path_display + '">' + module_name + '</span>)');
$('#fieldTreeLeafs').remove();
$('#detailpanel_fields_select').append('<div id="fieldTreeLeafs" class="dragbox aor_dragbox"></div>');
$('#fieldTreeLeafs').tree({
Expand Down Expand Up @@ -100,6 +106,9 @@

function loadTreeLeafData(node){
var module = node.module;
var module_name = node.name;
var module_path_display = node.module_path_display;
if(!treeDataLeafs[module]) {
$.getJSON('index.php',
{
Expand Down Expand Up @@ -129,12 +138,12 @@
//node.loaded = true;
//$('#fieldTree').tree('openNode', node);
treeDataLeafs[module] = treeData;
showTreeDataLeafs(treeDataLeafs[module], module);
showTreeDataLeafs(treeDataLeafs[module], module, module_name, module_path_display);
}
);
}
else {
showTreeDataLeafs(treeDataLeafs[module], module);
showTreeDataLeafs(treeDataLeafs[module], module, module_name, module_path_display);
}
}

Expand Down

0 comments on commit 691a84a

Please sign in to comment.