NIHVIVO-1907 Add repair mode to publication form

This commit is contained in:
ryounes 2011-04-05 14:33:06 +00:00
parent eab8a2153b
commit 9d5383c6e0
3 changed files with 82 additions and 45 deletions

View file

@ -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