From c0f84b2dffebba2ab14ebbdeaeba9bf4414513c2 Mon Sep 17 00:00:00 2001 From: Robert Axelsen Date: Fri, 10 May 2019 14:59:08 +0200 Subject: [PATCH] TT#58584 Add ignore helper button to build tables Change-Id: I1b017f7b7e0e2f45485fbe6d794c938cf6c69952 --- release_dashboard/static/release_dashboard/js/build.js | 7 +++++++ .../templates/release_dashboard/build_content.html | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/release_dashboard/static/release_dashboard/js/build.js b/release_dashboard/static/release_dashboard/js/build.js index 0c59174..967035d 100644 --- a/release_dashboard/static/release_dashboard/js/build.js +++ b/release_dashboard/static/release_dashboard/js/build.js @@ -55,3 +55,10 @@ $( document ).ready(function() { common_select.change(); } }); + +function click_ignore(e) { + var selection_box_id = e.target.id.split('_')[1]; + var selection_box = $('#version_' + selection_box_id); + selection_box.val('ignore'); + e.preventDefault(); +} diff --git a/release_dashboard/templates/release_dashboard/build_content.html b/release_dashboard/templates/release_dashboard/build_content.html index 3d595ff..c38b992 100644 --- a/release_dashboard/templates/release_dashboard/build_content.html +++ b/release_dashboard/templates/release_dashboard/build_content.html @@ -55,7 +55,7 @@ {% for p in projects %} - + + + + {% endfor %}