Skip to content

Commit

Permalink
= 4.2.5.8 =
Browse files Browse the repository at this point in the history
~ Fixed: case onChangeSortBy list courses reload page.
  • Loading branch information
tungnxt89 committed Dec 25, 2023
1 parent 9683a72 commit 91b4d38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/src/js/frontend/courses-v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ window.lpCoursesList = ( () => {

const elLPTarget = target.closest( classLPTarget );
if ( ! elLPTarget ) {
lpData.urlParams.paged = 1;
lpData.urlParams.order_by = target.value || '';
window.location.href = lpAddQueryArgs( urlCurrent, lpData.urlParams );
return;
}

Expand Down

0 comments on commit 91b4d38

Please sign in to comment.