using jQuery detach method to preserve events on grouped row elements; #1305