Set data attribute when resolving alerts

Fixes #1698

This fixed a regression introduced by 1f0f44e1, which stopped reading values from .html() and started reading values from .attr(). The resolve button was setting the body text of the element, but not the data attribute.