From b0149541a38ed5b35b16f52d11e4c4da891f7b23 Mon Sep 17 00:00:00 2001 From: Prem Sichanugrist Date: Wed, 9 May 2012 18:20:38 -0400 Subject: [PATCH] Preserve window.postJSON for now --- static/coffee/src/main.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/coffee/src/main.coffee b/static/coffee/src/main.coffee index 5c658f3415..85c98ff929 100644 --- a/static/coffee/src/main.coffee +++ b/static/coffee/src/main.coffee @@ -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