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,11 +258,15 @@ $(function() { | ||
| 258 | pstext = $(parentsort).text(); | 258 | pstext = $(parentsort).text(); |
| 259 | mainlink = $(".sort-cat a").attr('href'); | 259 | mainlink = $(".sort-cat a").attr('href'); |
| 260 | newmainlink = $(this).attr('href'); | 260 | newmainlink = $(this).attr('href'); |
| 261 | + | ||
| 261 | $(parentsort).text(sortclick); | 262 | $(parentsort).text(sortclick); |
| 262 | - $(".sort-cat a#category-sort").attr('href', newmainlink); | 263 | + $(".sort-cat>a").attr('href', newmainlink); |
| 263 | $(this).text(pstext); | 264 | $(this).text(pstext); |
| 264 | $(this).attr('href', mainlink); | 265 | $(this).attr('href', mainlink); |
| 265 | $(".sort-cat>a").click(); | 266 | $(".sort-cat>a").click(); |
| 267 | + | ||
| 268 | + $(location).attr('href',newmainlink); | ||
| 269 | + return false; | ||
| 266 | }); | 270 | }); |
| 267 | 271 | ||
| 268 | }); | 272 | }); |