Changeset 1553 for cpc/trunk/project/web


Ignore:
Timestamp:
Oct 3, 2010, 11:00:09 AM (11 years ago)
Author:
roux
Message:

images onover députés

Location:
cpc/trunk/project/web
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/web/css/xneth/style.css

    r1532 r1553  
    18821882  color: #7AA925;
    18831883}
     1884.phototitle {
     1885  display: block;
     1886}
  • cpc/trunk/project/web/js/jstitle.js

    r1498 r1553  
    44    }
    55    if ($(this).attr('title')) {
    6       $(this).attr('jstitle', $(this).attr('title'));
     6      title = $(this).attr('title').replace(/ \-\- /g, '<br/>').replace(/^([^<]+)<br/, '<b>$1</b><br');
     7      if ($(this).hasClass('phototitle') && !title.match(/<img src/)) {
     8        title = '<img src=\'' + $(this).children('.urlphoto')[0].href.replace(/\/([^\/]+)$/, "/depute/photo/$1/70") + '\'/><br/>' + title;
     9      }
     10      $(this).attr('jstitle', title);
    711      $(this).attr('title', '');
    812    }
    9     title = $(this).attr('jstitle');
    10     $('#jstitle').html(title.replace(/ \-\- /g, '<br/>'));
     13    $('#jstitle').html($(this).attr('jstitle'));
    1114    $('#jstitle').css('background-color', "white");
    1215    $('#jstitle').css('top', e.pageY+10);
Note: See TracChangeset for help on using the changeset viewer.