diff options
| author | 8chan <admin@8chan.co> | 2014-09-27 20:19:58 +0000 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-10-05 17:48:07 +0200 |
| commit | 8bfd5e1bcda4ff68a527fb370da0ccaa7a5ff6e7 (patch) | |
| tree | 4db8d3364488ce0a211952069d2d8bec1aa885a7 /js | |
| parent | f8178dcbe4c23c930b865c993c8f5ab8c831e59c (diff) | |
this>el
Diffstat (limited to 'js')
| -rw-r--r-- | js/id_colors.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/id_colors.js b/js/id_colors.js index e0795b75..9cde1b00 100644 --- a/js/id_colors.js +++ b/js/id_colors.js @@ -24,9 +24,9 @@ if (active_page == 'thread' || active_page == 'index') { } function colorPostId(el) { - var rgb = stringToRGB($(this).text()); + var rgb = stringToRGB($(el).text()); - $(this).css({ + $(el).css({ "background-color": "rgb("+rgb[0]+", "+rgb[1]+", "+rgb[2]+")", "padding": "3px 5px", "border-radius": "8px", |
