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.
|
||||
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue