Unobtrusive pagination_links_remote

This commit is contained in:
benni 2011-06-10 11:43:56 +02:00
parent c173cf4a6a
commit a47d4b1f0e
3 changed files with 9 additions and 4 deletions

View file

@ -60,6 +60,12 @@ $(function() {
document.location.href = newLocation;
}
});
// Remote paginations
$('div.pagination[data-remote] a').live('click', function() {
$.getScript($(this).attr('href'));
return false;
});
});