[#4180] Show and hide the total field based on the Deliverable Type
Hooks up holygrail to do basic headless JavaScript testing.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
jQuery(function($) {
|
||||
toggleSpecificDeliverableFields = function() {
|
||||
var deliverableType = $('select#deliverable_type option:selected').val();
|
||||
|
||||
if (deliverableType == 'FixedDeliverable') {
|
||||
$('#deliverable_total').show();
|
||||
} else {
|
||||
$('#deliverable_total').hide();
|
||||
}
|
||||
},
|
||||
|
||||
toggleSpecificDeliverableFields();
|
||||
|
||||
$('select#deliverable_type').change(function() {
|
||||
toggleSpecificDeliverableFields();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user