From 227ca9c33d53cf866353773e669121169eee305e Mon Sep 17 00:00:00 2001 From: Adolfo Fitoria Date: Thu, 6 Oct 2011 14:23:07 -0300 Subject: fixed bugs with white color --- askbot/skins/default/templates/main_page/javascript.html | 6 ++++-- askbot/skins/default/templates/question.html | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/askbot/skins/default/templates/main_page/javascript.html b/askbot/skins/default/templates/main_page/javascript.html index 4d39f233..e7479e63 100644 --- a/askbot/skins/default/templates/main_page/javascript.html +++ b/askbot/skins/default/templates/main_page/javascript.html @@ -20,8 +20,10 @@ var id_value = window.location.hash; if (id_value != ""){ var previous_color = $(id_value).css('background-color'); - $(id_value).animate({ backgroundColor: '#BEDA53' }, 500); - $(id_value).animate({backgroundColor: previous_color}, 500); + $(id_value).css('backgroundColor', '#FFF8C6'); + $(id_value).animate({backgroundColor: '#ff7f2a'}, 1000).animate({backgroundColor: '#FFF8C6'}, 1000, function(){ + $(id_value).css('backgroundColor', previous_color); + }); } } askbot['urls']['mark_interesting_tag'] = scriptUrl + '{% url mark_interesting_tag %}'; diff --git a/askbot/skins/default/templates/question.html b/askbot/skins/default/templates/question.html index 3013cc8e..3b07bddb 100644 --- a/askbot/skins/default/templates/question.html +++ b/askbot/skins/default/templates/question.html @@ -560,8 +560,10 @@ var id_value = window.location.hash; if (id_value != ""){ var previous_color = $(id_value).css('background-color'); - $(id_value).animate({ backgroundColor: '#BEDA53' }, 500); - $(id_value).animate({backgroundColor: previous_color}, 500); + $(id_value).css('backgroundColor', '#FFF8C6'); + $(id_value).animate({backgroundColor: '#ff7f2a'}, 1000).animate({backgroundColor: '#FFF8C6'}, 1000, function(){ + $(id_value).css('backgroundColor', previous_color); + }); } } -- cgit v1.2.3-1-g7c22