Now using GET request for getting the data.
This will prevent a 411 error from occurring on a live website. Also the URL does not need the timestamp since it already is added automatically.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/content/js/duplicate-slots-090331.js Tue Mar 31 19:25:17 2009 +0000
+++ b/app/soc/content/js/duplicate-slots-090331.js Tue Mar 31 19:25:43 2009 +0000
@@ -68,10 +68,10 @@
$.ajax({
cache:false,
mode: "sync",
- type: "POST",
+ type: "GET",
timeout: 1000000,
dataType: "json",
- url: "/program/assigned_proposals/"+url_to_query+"?limit="+OFFSET_LENGTH+"&offset="+current_offset+"&_="+(new Date().getTime()),
+ url: "/program/assigned_proposals/"+url_to_query+"?limit="+OFFSET_LENGTH+"&offset="+current_offset,
success: function (data, textStatus) {
if (data) {
// Load JSON data