diff options
Diffstat (limited to 'static/js/pichat.js')
| -rw-r--r-- | static/js/pichat.js | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index 7266beb..7611edb 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -608,7 +608,7 @@ function initLogThumb(selector, parentSelector) { }) } -function initChatThumb() { +function initChatThumb(){ $(".chat-thumb").live('mouseover mouseout', function(e) { var favorited = $(this).parents(".dump").hasClass("favorite") ? true : false; @@ -622,17 +622,6 @@ function initChatThumb() { } else { // mouseout if (favorited) { $(this).attr("src", Imgs.chatThumb); - var favorited = $(this).parents(".dump").hasClass("favorite") ? true : false; - if (e.type == "mouseover") { - if (favorited) { - $(this).attr("src", Imgs.chatThumbOff); - } else { - $(this).attr("src", Imgs.chatThumbBig); - $(this).stop().animate(Anim.chatThumbBig, 'fast') - } - } else { // mouseout - if (favorited) { - $(this).attr("src", Imgs.chatThumb); $(this).stop().animate(Anim.chatThumb, 'fast'); } else { $(this).stop().animate(Anim.chatThumbTiny, 'fast', 'swing', @@ -640,9 +629,10 @@ function initChatThumb() { $(this).attr("src", Imgs.chatThumbDot) $(this).animate(Anim.chatThumb, 0) }) - }} } - }})} + } + }) +} function paletteToChat(img){ var chatText = $("#msgInput").val() |
