OpenBuildings / jam-tart

Jam Admin Builder
BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Set Content-Type to JSON for JSON responses #4

Closed hkdobrev closed 10 years ago

hkdobrev commented 10 years ago

Set this header:

Content-Type: application/json

so when jQuery loads the data from the AJAX it converts it to an array of objects. Otherwise there is an error when accessing the name property.

ivank commented 10 years ago

LGTM