Page Source - With Ajax Functioning
<div class='paginate'>
<div class="pagination"><span class="previous_page
disabled">← Previous</span> <em class="current">1</em> <a
rel="next" href="/tickets?page=2">2</a> <a href="/tickets?page=3">3</a>
<a href="/tickets?page=4">4</a> <a href="/tickets?page=5">5</a> <a
class="next_page" rel="next" href="/tickets?page=2">Next
→</a></div>
</div>
It does appear that the previous button is disabled on page load, and
the first page is not a link.
After changing the page number, :
Page Source - Page 2 - With Ajax
<div class='paginate'>
<div class="pagination"><span class="previous_page
disabled">← Previous</span> <em class="current">1</em> <a
rel="next" href="/tickets?page=2">2</a> <a href="/tickets?page=3">3</a>
<a href="/tickets?page=4">4</a> <a href="/tickets?page=5">5</a> <a
class="next_page" rel="next" href="/tickets?page=2">Next
→</a></div>
</div>
The first page link still shows the "current" class, the "Next" button
stays linked to page #2, and the previous is disabled.
(Without Ajax, the will_paginate was fully functional, including the
"Previous and Next" buttons)
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment