Changeset 3048


Ignore:
Timestamp:
Jan 4, 2013, 1:00:47 AM (8 years ago)
Author:
roux
Message:

handle double highlight for all deputes of a circo after fin legislature

Location:
cpc/trunk/project
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/parlementaire/templates/_table.php

    r2854 r3048  
    3434foreach($deputes as $depute) {
    3535  $url_depute = url_for('@parlementaire?slug='.$depute->slug);
    36   $ct++; ?>
    37   <div class="list_dep<?php if (isset($circo) && $depute->fin_mandat == null) echo ' dep_map" id="dep'.preg_replace('/^(\d[\dab])$/', '0\\1', strtolower(Parlementaire::getNumeroDepartement($depute->nom_circo))).'-'.sprintf('%02d', $depute->num_circo); ?>" onclick="document.location='<?php echo $url_depute; ?>'"><span title="<?php echo $depute->nom.' -- '.$depute->getMoyenStatut(); ?>" class="jstitle phototitle block"><a class="urlphoto" href="<?php echo $url_depute; ?>"></a>
     36  $ct++;
     37  $id_circo = preg_replace('/^(\d[\dab])$/', '0\\1', strtolower(Parlementaire::getNumeroDepartement($depute->nom_circo))).'-'.sprintf('%02d', $depute->num_circo); ?>
     38  <div class="list_dep<?php if (isset($circo) && ($depute->fin_mandat == null || myTools::isFinLegislature())) echo ' dep_map dep'.$id_circo.'" id="'.sprintf('%03d', $depute->id).$id_circo; ?>" onclick="document.location='<?php echo $url_depute; ?>'"><span title="<?php echo $depute->nom.' -- '.$depute->getMoyenStatut(); ?>" class="jstitle phototitle block"><a class="urlphoto" href="<?php echo $url_depute; ?>"></a>
    3839    <span class="list_nom">
    3940      <a href="<?php echo $url_depute; ?>"><?php echo $depute->getNomPrenom(); ?></a>
  • cpc/trunk/project/web/css/xneth/style.css

    r3028 r3048  
    18241824}
    18251825.dept:hover {
    1826   background-color: rgb(198,229,81);
     1826  background-color: #D1EA74;
    18271827}
    18281828.dept a {
     
    18751875.list_dep:hover {
    18761876  color: #000;
    1877   background-color: rgb(198,229,81);
     1877  background-color: #D1EA74;
    18781878  opacity: 0.8;
    18791879}
  • cpc/trunk/project/web/js/doubleHilight.js

    r2866 r3048  
    1313  $(this).addClass("hover");
    1414  dep = $(this).attr("id").substring(3,9).replace(/-0$/, "");
    15   $("#dep"+dep).css("background-color", "#D1EA74");
     15  $(".dep"+dep).css("background-color", "#D1EA74");
     16  $(".dep"+dep).css("opacity", 0.8);
    1617  if (e.data.running == 0) {
    1718    d.running = 1;
     
    2324  $(this).removeClass("hover");
    2425  dep = $(this).attr("id").substring(3,9).replace(/-0$/, "");
    25   $("#dep"+dep).css("background-color", "#fff");
     26  $(".dep"+dep).css("background-color", "#fff");
     27  $(".dep"+dep).css("opacity", 1);
    2628  $(".map"+dep).filter(".hover").mouseout();
    2729})
Note: See TracChangeset for help on using the changeset viewer.