estimancy/projestimate

View on GitHub
app/views/wbs_activities/refresh_ratio_elements.js.erb

Summary

Maintainability
Test Coverage
$("#ratio_section").html("<%= j(render(:partial => 'wbs_activity_ratio_elements', :object => @wbs_activity_ratio_elements)) %>");
$("#activities_ratio_per_profile").html("<%= j(render(:partial => 'wbs_activities/activities_ratio_per_profile', :object => [@wbs_activity_ratio_elements, @wbs_organization_profiles])) %>");

$("#notifications").html("");

if(($('.div_tabs_to_disable').data('enable_update')) ==  false){
    $('.div_tabs_to_disable').find('input, textarea, button, select, a').attr('disabled','disabled');
    $('.select_ratio').removeAttr("disabled");
}

//Update the total ratio value per activity when activity's profile ratio has changed
update_wbs_activity_ratio_profiles();