Rename tab in Elections Stats Dashboard

From UnionCloud Support
Revision as of 10:16, 7 March 2017 by Ash (talk | contribs)
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;

   // 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");
         }
      }
   })