Ignore project files
Renamed variables
Format value as output value such as booleans converted to 1 and 0
Create a default "source" Hash if possible and display default values based on the source
combine class names
Use block for default value to avoid unnecessary evaluation
Add hash of class names to apply to element based on "source" value

The following "success" callback (CoffeeScript) will swap out classes
based on the new value selected:

    $('.editable').editable(
      success: (response, value) ->
        element = $(this)
        css = element.data('classes') || {}
        element.removeClass(class_name) for key, class_name of css
        element.addClass(css[value])
        element.css('background-color', '')
    )

For instance, if you have "Active" and "Inactive" states, this could be
used to change the Bootstrap `label` class from `label-success` to
`label-default`.
Documentation for new options