NIHVIVO-731: added author's name to delete confirmation message
This commit is contained in:
parent
89b65a6c0e
commit
d41f7acbe2
1 changed files with 4 additions and 1 deletions
|
@ -528,8 +528,11 @@ var addAuthorForm = {
|
||||||
|
|
||||||
removeAuthorship: function(link) {
|
removeAuthorship: function(link) {
|
||||||
// RY Upgrade this to a modal window
|
// RY Upgrade this to a modal window
|
||||||
|
|
||||||
|
authorName = $(link).prev().children().text();
|
||||||
|
|
||||||
var removeLast = false,
|
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)) {
|
if (!confirm(message)) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue