From 5eebd27e8253c6aee15776a0ce36622668611d6c Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sun, 1 Jul 2018 08:59:55 +0200 Subject: [PATCH] fixing rngState 858b17ef69dc30a542, upgrade to jQuery 3.3.1 made event queue load callback too late, hence highlight right away and only handle highlight disable in the callback, after scrolling to comment --- js/privatebin.js | 2 +- tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index 59f5f3f..1566ea3 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -2701,8 +2701,8 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { return; } + $comment.addClass('highlight'); var highlightComment = function () { - $comment.addClass('highlight'); if (fadeOut === true) { setTimeout(function () { $comment.removeClass('highlight'); diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 85dde27..5741c64 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -75,7 +75,7 @@ if ($MARKDOWN): - + diff --git a/tpl/page.php b/tpl/page.php index 1680665..613e5a0 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -54,7 +54,7 @@ if ($QRCODE): - +