Preserve window.postJSON for now

This commit is contained in:
Prem Sichanugrist
2012-05-09 18:20:38 -04:00
parent dfb05bbb01
commit b0149541a3

View File

@@ -20,3 +20,6 @@ $ ->
schematic_value $("#schematic_#{circuit_id}").attr("value")
$.post "/save_circuit/#{circuit_id}", schematic: schematic_value, (data) ->
alert('Saved') if data.results == 'success'
window.postJSON = (url, data, callback) ->
$.post url, data, callback