Bonjour,
J'utilise Jquery pour des tooltips que j'initialise au chargement de
la page avec
$(function() {
$('span.tooltip_ni').cluetip({splitTitle: '|', arrows: true,
cluetipClass: 'jtip', clickThrough: true});
}
J'ai une petite fonction appelée avec un link_to_remote qui me fait
page.replace_html("s_cal", :partial => "shared/calendar_table")
Mais suite à cela les tooltip, sur cette partie de html remplacée, ne
fonctionnent plus, j'imagine que c'est du à l'initialisation du
javascript mais je ne sais pas comment faire.
Merci
on 2010-03-11 21:21
on 2010-03-12 07:55
La nuit portant conseil, j'ai a priori trouvé, je rajoute dans on .js
page << "$('span.tooltip_ni_event').cluetip({splitTitle: '|', arrows:
true, cluetipClass: 'jtip', clickThrough: true, positionBy:
'bottomTop', sticky: true});"
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.