NIHVIVO-1907 Add repair mode to publication form
This commit is contained in:
parent
eab8a2153b
commit
9d5383c6e0
3 changed files with 82 additions and 45 deletions
|
@ -439,8 +439,9 @@ var customForm = {
|
|||
// e.g., 'Create Grant & Principal Investigator'
|
||||
buttonText = 'Create ' + typeText + ' & ' + baseButtonText;
|
||||
} else {
|
||||
// e.g., 'Create Publication'
|
||||
buttonText = 'Create ' + baseButtonText;
|
||||
// In repair mode, baseButtonText is "Edit X". Keep that for this case.
|
||||
// In add mode, baseButtonText is "X", so we get, e.g., "Create Publication"
|
||||
buttonText = this.editMode == 'repair' ? baseButtonText : 'Create ' + baseButtonText;
|
||||
}
|
||||
}
|
||||
// Using existing related individual
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue