Clicking the pin icon works only once


(Gerhard Schlager) #1

Steps to reproduce:

Expected behaviour:
The topic’s pinned state should toggle at each click. So, it should change from pinned to unpinned and to pinned again.

Actual behaviour:
At the first click the topic changes from pinned to unpinned. The second click reloads the page and the topic is still unpinned.

The same thing happens when the pin icon is clicked in the topic list.


(Jeff Atwood) #2

Maybe an Ember 1.9 bug @eviltrout?


(Robin Ward) #3

Not sure if it was related to 1.9, but we were definitely leaking the jQuery event which was bad so this was good to fix:

https://github.com/discourse/discourse/commit/07b8dc4eca9140a394057e7cab45761c21b276d5


(Jeff Atwood) #4