mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Oops, make highlight in topic list style-able too
This commit is contained in:
parent
be6ca8d118
commit
7dd470ccc0
2 changed files with 9 additions and 5 deletions
|
@ -17,11 +17,12 @@ Discourse.TopicListItemView = Discourse.GroupedView.extend({
|
|||
highlight: function() {
|
||||
var $topic = this.$();
|
||||
var originalCol = $topic.css('backgroundColor');
|
||||
$topic.css({
|
||||
backgroundColor: "#ffffcc"
|
||||
}).animate({
|
||||
backgroundColor: originalCol
|
||||
}, 2500);
|
||||
$topic
|
||||
.addClass('highlighted')
|
||||
.stop()
|
||||
.animate({ backgroundColor: originalCol }, 2500, 'swing', function(){
|
||||
$topic.removeClass('highlighted');
|
||||
});
|
||||
},
|
||||
|
||||
didInsertElement: function() {
|
||||
|
|
|
@ -59,6 +59,9 @@
|
|||
color: $nav-pills-border-color-active;
|
||||
}
|
||||
}
|
||||
&.highlighted {
|
||||
background-color: $highlight;
|
||||
}
|
||||
}
|
||||
th,
|
||||
td {
|
||||
|
|
Loading…
Reference in a new issue