Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X.PagedList.Mvc.Core: Revert behavior for UpdateTargetId #264

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

adschmu
Copy link
Contributor

@adschmu adschmu commented Jul 8, 2024

This reverts commit 01d9633.

In [1], behavior for the UpdateTargetId was changed so the "#" symbol is not prepended anymore and one has to add it manually now. However, the very name "UpdateTargetId" indicates that this is an ID and not something else. Similar behavior is found for JavaScript, where a function name containing "Id" implies that the hash symbol is not required.

Revert this to the previous behavior (<= 8.4.7), so it can be used without changes coming from any version except 9.1.2. This implements the correct behavior as it implies the provided value is actually an ID.

Future alternate solutions as discussed in #245 might choose different names to accept arbitrary elements as argument (e.g. UpdateTarget to accept IDs, classes, etc.).

Note that examples never got updated anyway (and thus no need to revert them).

[1] 01d9633 ("Close #221")

Fixes: #245

This reverts commit 01d9633.

In [1], behavior for the UpdateTargetId was changed so the "#" symbol is
not prepended anymore and one has to add it manually now. However, the very
name "UpdateTargetId" indicates that this is an ID and not something else.
Similar behavior is found for JavaScript, where a function name containing "Id"
implies that the hash symbol is not required.

Revert this to the previous behavior (<= 8.4.7), so it can be used without
changes coming from any version except 9.1.2. This implements the correct
behavior as it implies the provided value is actually an ID.

Future alternate solutions as discussed in dncuug#245 might choose different names
to accept arbitrary elements as argument (e.g. UpdateTarget to accept IDs,
classes, etc.).

Note that examples never got updated anyway (and thus no need to revert them).

[1] 01d9633 ("Close dncuug#221")

Fixes: dncuug#245
@adschmu adschmu force-pushed the pr/revert-ajax-update branch from f47f442 to f3745d8 Compare July 8, 2024 22:05
@a-gubskiy a-gubskiy merged commit 4e2f214 into dncuug:master Jul 9, 2024
2 checks passed
@adschmu adschmu deleted the pr/revert-ajax-update branch July 9, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants