by @href
you probably want to refer to the button's href attribute. You cannot access to this
anymore in $.ajax
's callback function, so you should store what you need in a variable before.
Right after reorder = el.attr("reorder")
, add href = @href
Then update your pushState
line like this: history.pushState null, "", href