Hearts manager Gary Locke praised the battling qualities of his young side after their thrilling 4-2 victory over Partick Thistle at Firhill.