jmpressjs / jmpress.js

A jQuery plugin to build a website on the infinite canvas
http://jmpressjs.github.com/jmpress.js
1.5k stars 237 forks source link

goTo / select not working #120

Closed jetlej closed 11 years ago

jetlej commented 11 years ago

I've tried using both functions to tie different anchors to jumping to a particular part of the presentation. Both appear to initiate a change in slide, but to the exact same slide. So leaveStep and enterStep is called, but the slide does not change.

$('.jmpress-nav a').on('click', function(){
    var choiceID = $(this).attr('rel');
    $('#jmpress').jmpress('select', choiceID, 'nothing');
    });
sokra commented 11 years ago

if .jmpress-nav a is in a slide, try:

$('.jmpress-nav a').on('click', function(){
    var choiceID = $(this).attr('rel');
    $('#jmpress').jmpress('select', choiceID, 'nothing');
    return false;
});
jetlej commented 11 years ago

Perfect, thank you so much!