Skip to content

Commit

Permalink
Merged pull request #8 from rafgithub.
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnboland committed Apr 25, 2012
1 parent 687e6af commit a12a1af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/MvcPaging/Pager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ public PaginationModel BuildPaginationModel(Func<int, string> generateUrl)

// Next
model.PaginationLinks.Add(currentPage < pageCount ? new PaginationLink { Active = true, PageIndex = currentPage + 1, DisplayText = "»", Url = generateUrl(currentPage + 1) } : new PaginationLink { Active = false, DisplayText = "»" });

// AjaxOptions
if (pagerOptions.AjaxOptions != null)
{
model.AjaxOptions = pagerOptions.AjaxOptions;
}
if (pagerOptions.AjaxOptions != null)
{
model.AjaxOptions = pagerOptions.AjaxOptions;
}

return model;
}
Expand Down
6 changes: 3 additions & 3 deletions src/MvcPaging/PaginationModel.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.Web.Mvc.Ajax;

namespace MvcPaging
{
public class PaginationModel
{
public IList<PaginationLink> PaginationLinks { get; private set; }
public AjaxOptions AjaxOptions { get; internal set; }
public AjaxOptions AjaxOptions { get; internal set; }

public PaginationModel()
{
PaginationLinks = new List<PaginationLink>();
AjaxOptions = null;
AjaxOptions = null;
}
}

Expand Down

0 comments on commit a12a1af

Please sign in to comment.