If the battery is bad, jump starting it with the battery installed could be the problem. The dead battery is sucking the juice from the jumper battery. Also check the battery ground on the chassis. If it is not making a good connection the engine will acted just like you described.