From 7d7ab1eeae43d99fe329878ac9c8db5e45e2dee5 Mon Sep 17 00:00:00 2001 From: John Olheiser <42128690+jolheiser@users.noreply.github.com> Date: Sun, 19 Jan 2020 22:39:21 -0600 Subject: Issue/PR Context Popups (#9822) * Add data-index attribute to issue anchors Signed-off-by: jolheiser * Init JS Signed-off-by: jolheiser * Add required data to anchor Signed-off-by: jolheiser * Finish popup Signed-off-by: jolheiser * Revert changes to html.go Signed-off-by: jolheiser * Better octicon contexts Signed-off-by: jolheiser * Split out popup function for re-use Signed-off-by: jolheiser * Style changes, test fixes, and cross-reference support Signed-off-by: jolheiser * Prefer em to px Signed-off-by: jolheiser * Move label margin to base CSS Signed-off-by: jolheiser * Move JS to separate file. Signed-off-by: jolheiser * Move JS to features and fix module Signed-off-by: jolheiser * Remove query-string and hash Co-Authored-By: silverwind Co-authored-by: Lauris BH Co-authored-by: Antoine GIRARD Co-authored-by: silverwind Co-authored-by: Lunny Xiao Co-authored-by: zeripath --- web_src/js/index.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web_src/js/index.js') diff --git a/web_src/js/index.js b/web_src/js/index.js index 619ca74e52..9168e7a943 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -5,6 +5,7 @@ import './publicPath.js'; import './gitGraphLoader.js'; import './semanticDropdown.js'; +import initContextPopups from './features/contextPopup'; function htmlEncode(text) { return jQuery('
').text(text).html(); @@ -2556,6 +2557,7 @@ $(document).ready(() => { initPullRequestReview(); initRepoStatusChecker(); initTemplateSearch(); + initContextPopups(suburl); // Repo clone url. if ($('#repo-clone-url').length > 0) { -- cgit v1.2.3