/
var
/
www
/
html
/
sugardemo
/
modules
/
ProjectTask
/
Upload File
HOME
/* * Your installation or use of this SugarCRM file is subject to the applicable * terms available at * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/. * If you do not agree to all of the applicable terms or do not have the * authority to bind the entity as an authorized representative, then do not * install or use this SugarCRM file. * * Copyright (C) SugarCRM Inc. All rights reserved. */ function prep_edit_task_in_grid(the_form) { the_form.return_module.value='ProjectTask'; the_form.return_action.value='DetailView'; the_form.return_id.value = the_form.record.value; the_form.module.value='Project'; the_form.action.value='EditGridView'; } function update_status(percent_complete){ if (percent_complete == '0'){ document.getElementById('status').value = 'Not Started'; } else if (percent_complete == '100'){ document.getElementById('status').value = 'Completed'; } else if (isNaN(percent_complete) || (percent_complete < 0 || percent_complete > 100)){ document.getElementById('percent_complete').value = ''; } else{ document.getElementById('status').value = 'In Progress'; } } function update_percent_complete(status){ if (status == 'In Progress'){ percent_value = '50'; } else if (status == 'Completed'){ percent_value = '100'; } else{ percent_value = '0'; } document.getElementById('percent_complete').value = percent_value; document.getElementById('percent_complete_text').innerHTML = percent_value; }