fix jsed class in js

This commit is contained in:
Thibault Duplessis 2013-05-28 00:44:57 +02:00
parent 2ed8ec5ca6
commit 489de9570d

View file

@ -321,7 +321,7 @@ var lichess_sri = Math.random().toString(36).substring(5); // 8 chars
});
function userPowertips() {
$('a.user_link:not(.jsed)').addClass('.jsed').powerTip({
$('a.user_link:not(.jsed)').addClass('jsed').powerTip({
placement: 's',
smartPlacement: true,
mouseOnToPopup: true,
@ -342,7 +342,7 @@ var lichess_sri = Math.random().toString(36).substring(5); // 8 chars
$('body').on('lichess.content_loaded', userPowertips);
function setTimeAgo() {
$("time:not(.jsed)").addClass('.jsed').timeago();
$("time:not(.jsed)").addClass('jsed').timeago();
}
setTimeAgo();
$('body').on('lichess.content_loaded', setTimeAgo);