Tree View in dashboard minor fixes
This commit is contained in:
parent
d9913818cb
commit
5ecc3470e2
|
@ -1456,6 +1456,7 @@ var TreeController = {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
treeViewControlModuleValues();
|
||||||
|
|
||||||
return $node;
|
return $node;
|
||||||
}
|
}
|
||||||
|
|
|
@ -600,16 +600,32 @@ class TreeViewWidget extends Widget
|
||||||
|
|
||||||
// Spinner.
|
// Spinner.
|
||||||
$output .= ui_print_spinner(__('Loading'), true);
|
$output .= ui_print_spinner(__('Loading'), true);
|
||||||
/*
|
ob_start();
|
||||||
$output .= \html_print_image(
|
?>
|
||||||
'images/spinner.gif',
|
<script type="text/javascript">
|
||||||
true,
|
function treeViewControlModuleValues()
|
||||||
[
|
{
|
||||||
'class' => 'loading_tree',
|
var $treeController = $("div[id^='tree-controller-recipient_']");
|
||||||
'style' => 'display: none;',
|
$treeController.each(function() {
|
||||||
]
|
var $thisTree = $(this);
|
||||||
);
|
if ($thisTree.width() < 600) {
|
||||||
*/
|
var $valuesForRemove = $('#'+$thisTree[0].id+' span.module-value');
|
||||||
|
$valuesForRemove.each(function(){
|
||||||
|
$(this).attr('style', 'display:none');
|
||||||
|
});
|
||||||
|
|
||||||
|
if ($thisTree.width() < 400) {
|
||||||
|
var $titlesForReduce = $('#'+$thisTree[0].id+' .node-content .module-name');
|
||||||
|
$titlesForReduce.each(function(){
|
||||||
|
$(this).attr('style', 'width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<?php
|
||||||
|
$output .= ob_get_clean();
|
||||||
// Container tree.
|
// Container tree.
|
||||||
$style = 'height:'.$height.'px; width:'.$width.'px;';
|
$style = 'height:'.$height.'px; width:'.$width.'px;';
|
||||||
$style .= 'text-align: left; padding:10px;';
|
$style .= 'text-align: left; padding:10px;';
|
||||||
|
|
Loading…
Reference in New Issue