Cardiff City put away two goals in two minutes to take the lead against Bolton Wanderers as they attempt to close in on promotion.