summaryrefslogtreecommitdiff
path: root/htroot/js/yacysort.js
diff options
context:
space:
mode:
authorRyszard Goń <RailgunWhite@gmail.com>2017-09-10 17:09:35 +0200
committerRyszard Goń <RailgunWhite@gmail.com>2017-09-10 17:20:12 +0200
commit634f52fefcee0ceecff8cf09add6fe6cb80615b4 (patch)
tree36b8b473af474b84b98e9cc5d88c099248745225 /htroot/js/yacysort.js
parentab0e50b94178e6ff59af2829b0dbf80abd363276 (diff)
Javascript re-sorting: replace jQuery show() with css animations
Diffstat (limited to 'htroot/js/yacysort.js')
-rw-r--r--htroot/js/yacysort.js7
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');
}
});