~rachidbm/ubuntu-translations-stats/bug-971432

« back to all changes in this revision

Viewing changes to stats/static/js/overview.js

  • Committer: David Planella
  • Date: 2012-03-02 07:10:51 UTC
  • Revision ID: david.planella@ubuntu.com-20120302071051-8w7aw9ayk86y3j6r
Properly configured local_settings. The overview page's language table now shows all translated languages (i.e. the table's paginator page size == translated_count)

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
    packages: ["table", "intensitymap"]
21
21
});
22
22
 
23
 
function drawTable(data) {
 
23
function drawTable(data, translated_count) {
24
24
 
25
25
    var language_table_data = new google.visualization.DataTable(
26
26
        data, 0.6);
57
57
                        hoverTableRow: 'row_hover',
58
58
                        selectedTableRow: 'row_selected',
59
59
                        headerCell: 'table_header_cell_left'},
60
 
        pageSize: 20
 
60
        pageSize: translated_count,
61
61
    });
62
62
 
63
63
}
79
79
}
80
80
 
81
81
function OnLoad() {
82
 
    drawTable(lang_data);
 
82
    drawTable(lang_data, translated_count);
83
83
    drawMap(country_data);
84
84
}
85
85