# Allocate comments

**URL:** https://meta.discourse.org/t/allocate-comments/67895
**Category:** Development
**Created:** [2017年八月11日 18:29 UTC](https://meta.discourse.org/t/allocate-comments/67895 "2017-08-11T18:29:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [2017年八月11日 18:29 UTC](https://meta.discourse.org/t/allocate-comments/67895/1 "2017-08-11T18:29:08Z")

</div>

Hello!

There is a small offer. But I think it will be useful to many. Because Saw a lot of topics here.

File widgets/post.js.es6

There just add:

[https://github.com/Toxu-ru/Toxu/blob/master/assets/javascripts/discourse/widgets/post.js.es6#L414](https://github.com/Toxu-ru/Toxu/blob/master/assets/javascripts/discourse/widgets/post.js.es6#L414)

An additional class will appear, which any administrator can use as you like.

[Demo](http://toxu.ru/t/proverka-discord-integracziya-s-chatom/1062/31)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2017年八月11日 20:29 UTC](https://meta.discourse.org/t/allocate-comments/67895/2 "2017-08-11T20:29:36Z")

</div>

> [@Stranik](#):
>
> addPostClassesCallbacks

See that line, there is a clear API for injecting classes, you don’t need to be overriding the whole widget.

---

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [2017年八月11日 20:43 UTC](https://meta.discourse.org/t/allocate-comments/67895/3 "2017-08-11T20:43:15Z")

</div>

I did not know that. Thank you!
