YaleSTC/shifts

View on GitHub
app/assets/javascripts/user_profile_fields_form.js

Summary

Maintainability
A
35 mins
Test Coverage
function description(type)
{
  var return_value = "";
  if(type == "text_area" || type == "picture_link") return "";
  else
  {
    return_value = values+"<br />"+textField+"<br /><em><small>";
    if(type == "check_box" || type == "select" || type == "radio_button")
    {
      return_value += "Enter a comma-separated list of choices";
    }
    else if(type == "text_field")
    {
      return_value += "Value should be either 'integer', 'decimal', or 'text'";
    }
    return_value += "</small></em>";
    return return_value;
  }
}


$('.form_right').toggle();