Discard warning on ticket view page.

Use jQuery bind/unbind for discard warning on ticket view/reply page.