Commit b0149541 by Prem Sichanugrist

Preserve window.postJSON for now

parent dfb05bbb
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment