.nm() vs .nmManual() for ajax requests #77

Closed
jwoertink opened this Issue Apr 13, 2011 · 0 comments

Comments

Projects
None yet
2 participants
@jwoertink

I'm using version 2.0.0 with jQuery 1.5.1 in my rails app.

My markup is setup like this:

<a href="/some-page" rel="popup">Some Page</a>

<script>
$(function() { $('a[rel^=popup]').nm(); });
</script>

This causes the content to paginate, but since there is only 1 page, clicking the right arrow will show an error. When I use:
<script>
$(function() { $('a[rel^=popup]').click(function() {
$.nmManual(this.href);
return false;
}); });
</script>
I get the intended results.

@nyroDev nyroDev closed this in 489ebf6 Apr 14, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment