# Use javasript event only instead of href for avatars

**URL:** <https://meta.discourse.org/t/use-javasript-event-only-instead-of-href-for-avatars/47386>\
**Category:** Product Support\
**Created:** [7월 16, 2016, 6:48오전 UTC](https://meta.discourse.org/t/use-javasript-event-only-instead-of-href-for-avatars/47386 "2016-07-16T06:48:31Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Idan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/idan/32/198212_2.png) [@Idan](https://meta.discourse.org/u/Idan)\
**Post date:** [7월 16, 2016, 7:57오전 UTC](https://meta.discourse.org/t/use-javasript-event-only-instead-of-href-for-avatars/47386/8 "2016-07-16T07:57:43Z")

</div>

One more think, I think this one need to be change as well:

in test/javascripts/widgets/post-test.js.es6

```
   assert.ok(this.$('.who-liked').length === 1);
	      assert.ok(this.$('.who-liked a.trigger-user-card').length === 1);

	      assert.ok(this.$('.who-liked').length === 0);
	      assert.ok(this.$('.who-liked a.trigger-user-card').length === 0);

```

to:

```
  assert.ok(this.$('.who-liked').length === 1);
    	      assert.ok(this.$('.who-liked span.trigger-user-card').length === 1);

    	      assert.ok(this.$('.who-liked').length === 0);
    	      assert.ok(this.$('.who-liked span.trigger-user-card').length === 0);

```

---

_[View the full topic](https://meta.discourse.org/t/use-javasript-event-only-instead-of-href-for-avatars/47386)._
