diff options
| author | Ryszard Goń <RailgunWhite@gmail.com> | 2017-09-10 17:09:35 +0200 |
|---|---|---|
| committer | Ryszard Goń <RailgunWhite@gmail.com> | 2017-09-10 17:20:12 +0200 |
| commit | 634f52fefcee0ceecff8cf09add6fe6cb80615b4 (patch) | |
| tree | 36b8b473af474b84b98e9cc5d88c099248745225 /htroot/js/yacysort.js | |
| parent | ab0e50b94178e6ff59af2829b0dbf80abd363276 (diff) | |
Javascript re-sorting: replace jQuery show() with css animations
Diffstat (limited to 'htroot/js/yacysort.js')
| -rw-r--r-- | htroot/js/yacysort.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/htroot/js/yacysort.js b/htroot/js/yacysort.js index 6f2af70c4..3b18b4a03 100644 --- a/htroot/js/yacysort.js +++ b/htroot/js/yacysort.js @@ -12,7 +12,7 @@ var displayPage = function() { $("#resultscontainer").find(".searchresults.earlierpage").each( function(i) { // Hide the item $(this).removeClass("currentpage"); - $(this).hide(1000); + $(this).css('animation', '1s 1 forwards hide'); }); // For every search item from a current or later page... @@ -20,11 +20,12 @@ var displayPage = function() { // If we now have too many results, hide the lowest-ranking ones. if (i >= requestedResults) { $(this).removeClass("currentpage"); - $(this).hide(1000); + $(this).css('animation', '1s 1 forwards hide'); } else { $(this).addClass("currentpage"); - $(this).show(1000); + $(this).css('display', ''); + $(this).css('animation', '1s 1 forwards show'); } }); |
