blob: 0f678feee4157ea6e33cd83558d3fb311cc5dfa0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// Called upon loading /user/log
function initLog(recips) {
Search.initInpage();
$('.logged-dump .content').each(function() {
var t = $(this);
t.html(buildMsgContent(t.text(), recips));
});
initLogThumb(".logged-dump .thumb", '.dump');
}
function initLogThumb(selector, parentSelector) {
$(selector).bind('mouseover mouseout',
function(e) {
var favorited = $(this).parents(parentSelector).hasClass("favorite") ? true : false;
if (e.type == "mouseover") {
if (favorited) {
$(this).attr("src", Imgs.logThumbOff);
} else {
$(this).attr("src", Imgs.logThumbBig);
$(this).stop().animate(Anim.logThumbBig, 'fast');
}
} else { // mouseout
if (favorited) {
$(this).attr("src", Imgs.logThumb);
$(this).stop().animate(Anim.logThumb, 'fast');
} else {
$(this).attr("src", Imgs.logThumbOff);
$(this).stop().animate(Anim.logThumb, 'fast');
}
}
})
}
function load_favs(){
$(function(){
$(".permalink").each(function(){
var $div = $("<div>");
$div.load(this.href + " .faver-list");
$div.insertBefore($(this).parent())
})
})
}
|