Now using GET request for getting the data.
authorLennard de Rijk <ljvderijk@gmail.com>
Tue, 31 Mar 2009 19:25:43 +0000
changeset 2044 3aa6123be2a7
parent 2043 66045290c97f
child 2045 e7cf95cc4c18
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
app/soc/content/js/duplicate-slots-090331.js
--- 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