From d41f7acbe268c1949f5fb3bf4cae885ed77d3085 Mon Sep 17 00:00:00 2001 From: tworrall Date: Mon, 31 Oct 2011 17:46:38 +0000 Subject: [PATCH] NIHVIVO-731: added author's name to delete confirmation message --- productMods/edit/forms/js/addAuthorsToInformationResource.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/productMods/edit/forms/js/addAuthorsToInformationResource.js b/productMods/edit/forms/js/addAuthorsToInformationResource.js index 64b12471..4711351c 100644 --- a/productMods/edit/forms/js/addAuthorsToInformationResource.js +++ b/productMods/edit/forms/js/addAuthorsToInformationResource.js @@ -528,8 +528,11 @@ var addAuthorForm = { removeAuthorship: function(link) { // RY Upgrade this to a modal window + + authorName = $(link).prev().children().text(); + var removeLast = false, - message = 'Are you sure you want to remove this author?'; + message = 'Are you sure you want to remove this author:\n\n' + authorName + ' ?\n\n'; if (!confirm(message)) { return false;