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