NIHVIVO-797 In roles form, re-enable disabled fields on submit because they are required in the edit config.

This commit is contained in:
rjy7 2010-07-15 14:25:42 +00:00
parent b44803f80b
commit 7f7b302fbb
2 changed files with 10 additions and 2 deletions

View file

@ -132,6 +132,13 @@ var customForm = {
// These should not be editable: only properties of the role are editable.
this.typeSelector.attr('disabled', 'disabled');
this.relatedIndLabel.attr('disabled', 'disabled');
this.form.submit(function() {
// Re-enable these fields so they get submitted, since they are required
// in the edit config.
customForm.typeSelector.attr('disabled', '');
customForm.relatedIndLabel.attr('disabled', '');
});
},
// Bind event listeners that persist over the life of the page.

View file

@ -11,8 +11,9 @@
personToRolePredicate: URI of the person to role predicate.
roleToPersonPredicate: URI of the role to person predicate.
roleActivityToRolePredicate: URI of the activity to role predicate.
roleLabelForPerson: human readable label for person when viewing from non-person side of role. Some short views
don't specify this value because the role name is displayed instead.
roleLabelForPerson: human readable label for person when viewing from non-person side of role. Most short views
don't specify this value because the role name is displayed instead. Grant-related short views specify
this value because there is no specific role name.
roleActivityLabel: human readable label of activity used for error messages
--%>