NIHVIVO-797 In roles form, re-enable disabled fields on submit because they are required in the edit config.
This commit is contained in:
parent
b44803f80b
commit
7f7b302fbb
2 changed files with 10 additions and 2 deletions
|
@ -132,6 +132,13 @@ var customForm = {
|
||||||
// These should not be editable: only properties of the role are editable.
|
// These should not be editable: only properties of the role are editable.
|
||||||
this.typeSelector.attr('disabled', 'disabled');
|
this.typeSelector.attr('disabled', 'disabled');
|
||||||
this.relatedIndLabel.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.
|
// Bind event listeners that persist over the life of the page.
|
||||||
|
|
|
@ -11,8 +11,9 @@
|
||||||
personToRolePredicate: URI of the person to role predicate.
|
personToRolePredicate: URI of the person to role predicate.
|
||||||
roleToPersonPredicate: URI of the role to person predicate.
|
roleToPersonPredicate: URI of the role to person predicate.
|
||||||
roleActivityToRolePredicate: URI of the activity to role 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
|
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.
|
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
|
roleActivityLabel: human readable label of activity used for error messages
|
||||||
--%>
|
--%>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue