Closed FlashJunior closed 13 years ago
i build a very ugly workaround:
$(".list_holder").pajinate({
items_per_page : 10,
item_container_id : '.list2',
nav_panel_id : '.list_nav',
nav_label_first : '«',
nav_label_last : '»',
nav_label_prev : '‹',
nav_label_next : '›'
});
$(".list_nav a").bind("click", function(){
if($(".previous_link").hasClass("no_more")){
$(".first_link").addClass("no_more");
}else{
$(".first_link").removeClass("no_more");
}
if($(".next_link").hasClass("no_more")){
$(".last_link").addClass("no_more");
}else{
$(".last_link").removeClass("no_more");
}
})
$(".list_nav a.active_page").trigger("click");
Working on this right now. Will push the code in the next hour or two.
thx.
"no_more" class is now added to first/last/prev/next in the appropriate situations.
If i am on "page 1", would it not make sense to have the "no_more" class on "first_link"? And if you are on the last, "no_more" class on "last_link".