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.