magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Product reviews list template paging issue.

Open tzyganu opened this issue 11 years ago • 4 comments

In the file /app/code/Magento/Review/view/frontend/templates/review.phtml there is a js function called processReviews that (from what I understood) makes the pager use ajax.
but there is a problem with the <a> tag selector for the paging.
Right now the selector looks like this: $('.pages a') on line

$('.pages a').each(function(index, element) {

This works with a default install, but if I add other <a> elements anywhere in the page that match this selector, clicking on them will trigger an ajax request. This is may not be the desired effect.
I think that the DOM selector should be $('#product-review-container .pages a') to limit the selected elements to the reviews paging.

PS: I know I can do a pull request, but I prefer to let you fix this in case I'm wrong.

tzyganu avatar Jan 14 '15 15:01 tzyganu

In this place really ugly js code, I think it should be rewrited

ihor-sviziev avatar Jan 14 '15 18:01 ihor-sviziev

@tzyganu, we created a ticket in the internal tracker: MAGETWO-32939. We will update you once we have any news on the resolution and fix availability time. Thank you!

verklov avatar Jan 22 '15 14:01 verklov

@tzyganu, this issue is fixed and already available on public. Please, check it again.

vpelipenko avatar Feb 23 '15 11:02 vpelipenko

@vpelipenko Thanks for the fix. Seams to be working nice.

tzyganu avatar Feb 23 '15 12:02 tzyganu