# HG changeset patch # User Sverre Rabbelier # Date 1236523104 0 # Node ID 02f15a955c42ade9cf29e75a7f80ffe1fed2d896 # Parent c99815c27c4d43434bbd26fb6dd749f9fbe31a22 Provide the 'return_url' in the allocate slots view This url can then be used to post and receive JSON data from. Patch by: Sverre Rabbelier diff -r c99815c27c4d -r 02f15a955c42 app/soc/content/js/slot-allocator.js --- a/app/soc/content/js/slot-allocator.js Sun Mar 08 14:37:28 2009 +0000 +++ b/app/soc/content/js/slot-allocator.js Sun Mar 08 14:38:24 2009 +0000 @@ -39,14 +39,14 @@ } function retrieveJSON() { - $.getJSON("http://localhost:8080/program/slots/google/gsoc2009?_="+(new Date().getTime()), + $.getJSON(RETURN_URL+"?_="+(new Date().getTime()), updateFromJSON ); } function reCalculate() { - url = "http://localhost:8080/program/slots/google/gsoc2009?_="+(new Date().getTime()) -   $.postJSON(url, current_slots, updateFromJSON); + url = RETURN_URL+"?_="+(new Date().getTime()) +  $.postJSON(url, current_slots, updateFromJSON); } function updateOverlay() { diff -r c99815c27c4d -r 02f15a955c42 app/soc/templates/soc/program/allocation/allocation.html --- a/app/soc/templates/soc/program/allocation/allocation.html Sun Mar 08 14:37:28 2009 +0000 +++ b/app/soc/templates/soc/program/allocation/allocation.html Sun Mar 08 14:38:24 2009 +0000 @@ -5,6 +5,7 @@