diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index de8a826..3d14a7c 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -659,31 +659,6 @@ function setup_reply_btns() { setup_edit_btns(); setup_reply_btns(); - var cur_hash = null; - - highlight_comment = function() { - var _hash = window.location.hash; - console.log(_hash); - if (_hash == '#commit_list' || _hash == '#request_diff') { - return false; - } - if (_hash != cur_hash) { - $( cur_hash ).css( - "background", "linear-gradient(to bottom, #ededed 0%, #fff 100%)" - ); - }; - cur_hash = _hash; - if ( _hash ) { - $( _hash ).css( - "background", "linear-gradient(to bottom, #eded98 0%, #fff 100%)" - ); - }; - return false; - }; - - $(window.onload=highlight_comment()); - $(window).on('hashchange', highlight_comment); - $(".comment_body").each(function(ind, obj) { var source = $(obj).html(); var preview = emojione.toImage(source); @@ -820,6 +795,39 @@ function try_async_comment(form, inline) { + + {% if config['EVENTSOURCE_SOURCE'] and pull_request %}