Difference between revisions of "Rename tab in Elections Stats Dashboard"
From UnionCloud Support
(Created page with "// Fix for changing 'halls' to 'schools' $(function(){ if($(".uc-election-dashboard").length > 0){ $(".hall a").text("Schools"); if($(".hall.active").leng...") |
|||
Line 1: | Line 1: | ||
− | // Fix for changing 'halls' to 'schools' | + | If you want to change the Name of one of the tabs on the Election Stats Dashboard, and you have access to [[Global Javascript]] you can do this using the following lines of code]] |
− | $(function(){ | + | |
− | + | To rename the Halls tab to Schools for example use the code below; | |
− | + | ||
− | + | // Fix for changing 'halls' to 'schools' | |
− | + | $(function(){ | |
− | + | if($(".uc-election-dashboard").length > 0){ | |
− | + | $(".hall a").text("Schools"); | |
− | + | ||
− | }) | + | if($(".hall.active").length > 0){ |
+ | $(".uc-top-turnouts-headings").text("Schools"); | ||
+ | } | ||
+ | } | ||
+ | }) |
Revision as of 10:16, 7 March 2017
If you want to change the Name of one of the tabs on the Election Stats Dashboard, and you have access to Global Javascript you can do this using the following lines of code]]
To rename the Halls tab to Schools for example use the code below;
// Fix for changing 'halls' to 'schools' $(function(){ if($(".uc-election-dashboard").length > 0){ $(".hall a").text("Schools"); if($(".hall.active").length > 0){ $(".uc-top-turnouts-headings").text("Schools"); } } })