Merge pull request #2264 from tobiasd/20160118-admin2

fed stats template beautification && doc strings for the mod/admin
This commit is contained in:
fabrixxm 2016-01-19 09:19:07 +01:00
commit f51535f38e
2 changed files with 40 additions and 35 deletions

View file

@ -114,7 +114,16 @@ function admin_post(&$a){
/**
* @brief Generates content of the admin panel pages
*
* This function generates the content for the admin panel.
* This function generates the content for the admin panel. It consists of the
* aside menu (same for the entire admin panel) and the code for the soecified
* subpage of the panel.
*
* The structure of the adress is: /admin/subpage/details though "details" is
* only necessary for some subpages, like themes or addons where it is the name
* of one theme resp. addon from which the details should be shown. Content for
* the subpages is generated in separate functions for each of the subpages.
*
* The returned string hold the generated HTML code of the page.
*
* @param App $a
* @return string

View file

@ -23,11 +23,7 @@ var FedData = [
{{/foreach}}
];
var ctx = document.getElementById("FederationChart").getContext("2d");
var myDoughnutChart = new Chart(ctx).Doughnut(FedData,
{
animateRotate : false,
});
document.getElementById('FederationLegend').innerHTML = myDoughnutChart.generateLegend();
var myDoughnutChart = new Chart(ctx).Doughnut(FedData, { animateRotate : false, });
</script>
<table id="federation-stats">