Partick Thistle have sealed promotion to the Scottish Premier League after winning the First Division with victory at Falkirk.