From a2883a113895f3c4cfd83f920df1b43f76add3b6 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Mon, 10 Dec 2012 14:09:35 +0000 Subject: add comments for 2 functions purpose --- js/pkgsubmit.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/pkgsubmit.js b/js/pkgsubmit.js index 8e79a36..48b51dd 100644 --- a/js/pkgsubmit.js +++ b/js/pkgsubmit.js @@ -125,7 +125,10 @@ function highlight_text(text) { }); } + /** + * Load files list returned for current build (see href), + * build it under the build status line and show it. */ function build_log_files_list(ev) { if (!ev.metaKey) { @@ -164,6 +167,8 @@ function safe_tags_regex(str) { } /** + * If href is a log file, load it and display it in a decorated box + * plus controls to close/navigate it. */ function show_log_file(ev) { @@ -240,7 +245,6 @@ function show_log_file(ev) { } $(function () { - $('.status-link').on("click", build_log_files_list); $("table#submitted-packages tbody").on("click", "tr td li a.view-inline", show_log_file); -- cgit v1.2.1