Rename tab in Elections Stats Dashboard

From UnionCloud Support
Jump to: navigation, search

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;

 1     // Fix for changing 'halls' to 'schools'
 2     $(function(){   
 3         if($(".uc-election-dashboard").length > 0){
 4           $(".hall a").text("Schools");
 5      
 6           if($(".hall.active").length > 0){ 
 7             $(".uc-top-turnouts-headings").text("Schools");
 8           }
 9        }
10     })