From 33b9059366224c2f427f8ff502dda716b045ac91 Mon Sep 17 00:00:00 2001 From: dumpfmprod Date: Tue, 31 Aug 2010 01:38:58 -0400 Subject: sostler prod commit --- static/js/pichat.js | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'static/js/pichat.js') 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,21 +608,10 @@ function initLogThumb(selector, parentSelector) { }) } -function initChatThumb() { +function initChatThumb(){ $(".chat-thumb").live('mouseover mouseout', function(e) { 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); - var favorited = $(this).parents(".dump").hasClass("favorite") ? true : false; if (e.type == "mouseover") { if (favorited) { $(this).attr("src", Imgs.chatThumbOff); @@ -640,9 +629,10 @@ function initChatThumb() { $(this).attr("src", Imgs.chatThumbDot) $(this).animate(Anim.chatThumb, 0) }) - }} } - }})} + } + }) +} function paletteToChat(img){ var chatText = $("#msgInput").val() -- cgit v1.2.3-70-g09d2