diff --git a/src/main/html/webapp/components/core/job/detail/detail.js b/src/main/html/webapp/components/core/job/detail/detail.js index 5ef45138..147973c7 100644 --- a/src/main/html/webapp/components/core/job/detail/detail.js +++ b/src/main/html/webapp/components/core/job/detail/detail.js @@ -76,7 +76,7 @@ export default Control.extend({ '#delete-btn click': function(el, ev) { var that = this; - bootbox.confirm("Are you sure you want to delete " + that.job.attr('id') + "?", function(result) { + bootbox.confirm("Are you sure you want to delete " + that.job.attr('name') + "?", function(result) { if (result) { var okButton = $("button[data-bb-handler='confirm']"); @@ -106,7 +106,7 @@ export default Control.extend({ '#cancel-btn click': function(el, ev) { var that = this; - bootbox.confirm("Are you sure you want to cancel " + that.job.attr('id') + "?", function(result) { + bootbox.confirm("Are you sure you want to cancel " + that.job.attr('name') + "?", function(result) { if (result) { var okButton = $("button[data-bb-handler='confirm']"); @@ -136,7 +136,7 @@ export default Control.extend({ '#restart-btn click': function(el, ev) { var that = this; - bootbox.confirm("Are you sure you want to restart " + that.job.attr('id') + "?", function(result) { + bootbox.confirm("Are you sure you want to restart " + that.job.attr('name') + "?", function(result) { if (result) { var okButton = $("button[data-bb-handler='confirm']"); diff --git a/src/main/html/webapp/components/core/job/list/list.js b/src/main/html/webapp/components/core/job/list/list.js index d78b4f0d..63f886bf 100644 --- a/src/main/html/webapp/components/core/job/list/list.js +++ b/src/main/html/webapp/components/core/job/list/list.js @@ -48,7 +48,7 @@ export default Control.extend({ var card = $(el).closest('.card'); var job = domData.get.call(card[0], 'job'); - bootbox.confirm("Are you sure you want to delete " + job.attr('id') + "?", function(result) { + bootbox.confirm("Are you sure you want to delete " + job.attr('name') + "?", function(result) { if (result) { var okButton = $("button[data-bb-handler='confirm']"); @@ -78,7 +78,7 @@ export default Control.extend({ var card = $(el).closest('.card'); var job = domData.get.call(card[0], 'job'); - bootbox.confirm("Are you sure you want to cancel " + job.attr('id') + "?", function(result) { + bootbox.confirm("Are you sure you want to cancel " + job.attr('name') + "?", function(result) { if (result) { var okButton = $("button[data-bb-handler='confirm']");