Skip to content

Commit

Permalink
Merge pull request #264 from adschmu/pr/revert-ajax-update
Browse files Browse the repository at this point in the history
X.PagedList.Mvc.Core: Revert behavior for UpdateTargetId
  • Loading branch information
ernado-x authored Jul 9, 2024
2 parents cf1a5e7 + f3745d8 commit 4e2f214
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/X.PagedList.Mvc.Core/AjaxOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ public virtual IEnumerable<HtmlAttribute> ToUnobtrusiveHtmlAttributes()
{
var attrs = new List<HtmlAttribute>
{
new() { Key = "data-ajax-method", Value = HttpMethod },
new() { Key = "data-ajax-mode", Value = InsertionMode },
new() { Key = "data-ajax-update", Value = UpdateTargetId },
new() { Key = "data-ajax", Value = "true" }
new() {Key = "data-ajax-method", Value = HttpMethod},
new() {Key = "data-ajax-mode", Value = InsertionMode},
new() {Key = "data-ajax-update", Value = "#" + UpdateTargetId},
new() {Key = "data-ajax", Value = "true"}
};

if (!string.IsNullOrEmpty(Confirm))
Expand Down
1 change: 0 additions & 1 deletion src/X.PagedList.Mvc.Core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
Library was not updated for a long time. This version contains lot of breaking changes:
- Updated namespaces
- Removed some classes which duplicated ASP.NET Core classes
- UpdateTargetId in AjaxOptions now not automatically prepended
- Other changes

## What is this?
Expand Down

0 comments on commit 4e2f214

Please sign in to comment.