Modify to attach other event than link to trigger pushnav ( took Etienne Dion's code from a pull request and modify )