Commit bf217989bba33e981bd004888e7abeef94100a61

Authored by Yarik
2 parents 60badbd3 b31541f7

Merge remote-tracking branch 'origin/master'

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 });