Commit b31541f7157dcf5bc00964d0f59f641f2972ae01
1 parent
7ea39d3b
Сортировка
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
frontend/web/js/script.js
... | ... | @@ -258,11 +258,15 @@ $(function() { |
258 | 258 | pstext = $(parentsort).text(); |
259 | 259 | mainlink = $(".sort-cat a").attr('href'); |
260 | 260 | newmainlink = $(this).attr('href'); |
261 | + | |
261 | 262 | $(parentsort).text(sortclick); |
262 | - $(".sort-cat a#category-sort").attr('href', newmainlink); | |
263 | + $(".sort-cat>a").attr('href', newmainlink); | |
263 | 264 | $(this).text(pstext); |
264 | 265 | $(this).attr('href', mainlink); |
265 | 266 | $(".sort-cat>a").click(); |
267 | + | |
268 | + $(location).attr('href',newmainlink); | |
269 | + return false; | |
266 | 270 | }); |
267 | 271 | |
268 | 272 | }); | ... | ... |