Wrong colspan in ajax popup

on the many-to-one form type, when the list of related admin is opened in a popup, on the table footer there is a wrong colspan number due to the lack of the batch action column. This solves the problem by considering the type of the request.