summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenan Rodrigo <rebarbos@redhat.com>2019-10-01 16:57:16 +0200
committerMartin Styk <mastyk@redhat.com>2019-11-04 07:01:44 +0000
commit3f5f38ac8b9e707c1c17355dc624f9a2515db041 (patch)
tree723101de269d977ba8ba32ad8be0570be7583607
parent2b459e380e2bfc3a66dc2bc3e8577004c6cef218 (diff)
Add Job ID to 'Delete job' message box
-rw-r--r--Server/bkr/server/static/javascript/util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/Server/bkr/server/static/javascript/util.js b/Server/bkr/server/static/javascript/util.js
index be51106..4302771 100644
--- a/Server/bkr/server/static/javascript/util.js
+++ b/Server/bkr/server/static/javascript/util.js
@@ -17,7 +17,7 @@ function failure(err_msg) {
}
function do_and_confirm_form(msg, action_type, yes_action) {
- _do_and_confirm(false, null, null, null, msg, action_type, yes_action);
+ _do_and_confirm(false, null, {}, null, msg, action_type, yes_action);
}
function do_and_confirm_ajax(url, data, callback, msg, action_type) {
@@ -29,7 +29,7 @@ function _do_and_confirm(ajax, url, data, callback, msg, action_type, yes_action
msg = 'Are you sure you want to '+ action_type +' this?'
}
var newpara = $('<p></p>').text(msg)
- var dialog_div = $('<div></div>').attr('title',action_type[0].toUpperCase() + action_type.slice(1,action_type.length)).append(newpara)
+ var dialog_div = $('<div></div>').attr('title',action_type[0].toUpperCase() + action_type.slice(1,action_type.length)+' '+ (data.t_id || "")).append(newpara)
if (! yes_action) {
if (ajax == true) {