There're already even, odd class in activity rows, is that possible to add a 'first' css class to the top row and a 'last' to the last?
thanks,

| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot at 2012-01-17 14:21:37.png | 102.4 KB | rogical |
There're already even, odd class in activity rows, is that possible to add a 'first' css class to the top row and a 'last' to the last?
thanks,

| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot at 2012-01-17 14:21:37.png | 102.4 KB | rogical |
Comments
Comment #1
rogical commentedComment #2
Stalski commentedI was trying to implement this as it seemed easy at first. But actually when polling newer messages or fetching older messages, it's a bit hard and weird having to change that first / last behavior.
That said, it occurred to me that it would be much easier in javascript only.
However, I am not much in favor of the first - last classes as they are not functional in the case of heartbeat.
You could however do it yourself on a drupal.behavior hook (tons of examples available). In short: Lookup a stream, calculate first and last and remove/add classes accordingly.
I am sorry to disappoint you. I might not have given it enough thought, but that's how I feel about it right now.
Comment #3
rogical commentedThat's OK, as I also think about it for a time, when the messages are keep polling, it's not able to do that.
Thanks however!