← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4440: BUGFIX: XHR GET does not work in Firefox 3.6 when app cache is enabled. Changed to XHR POST globa...

 

------------------------------------------------------------
revno: 4440
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2011-08-25 11:02:12 +0200
message:
  BUGFIX: XHR GET does not work in Firefox 3.6 when app cache is enabled. Changed to XHR POST globally for dataentry module.
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.availability.js
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.js
  dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.availability.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.availability.js	2011-08-23 10:07:58 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.availability.js	2011-08-25 09:02:12 +0000
@@ -49,7 +49,7 @@
     {
         $.ajax( {
             url : "../dhis-web-commons-stream/ping.action",
-            cache : false,
+            type : 'POST',
             success : function( data, textStatus, jqXHR )
             {
                 dhis2.availability._isAvailable = true;
@@ -106,6 +106,7 @@
         url : "../dhis-web-commons-stream/ping.action",
         async : false,
         cache : false,
+        type : 'POST',
         success : function( data, textStatus, jqXHR )
         {
             dhis2.availability._isAvailable = true;

=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.js	2011-08-19 10:36:08 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.js	2011-08-25 09:02:12 +0000
@@ -85,7 +85,7 @@
         var version = localStorage[getTagId( "Version" )];
         var should_update = false;
 
-        $.get( '../dhis-web-commons-ajax-json/getOrganisationUnitTree.action', {
+        $.post( '../dhis-web-commons-ajax-json/getOrganisationUnitTree.action', {
             "versionOnly" : true
         }, function( data, textStatus, jqXHR )
         {
@@ -103,7 +103,7 @@
                 {
                     if ( should_update )
                     {
-                        $.get( '../dhis-web-commons-ajax-json/getOrganisationUnitTree.action',
+                        $.post( '../dhis-web-commons-ajax-json/getOrganisationUnitTree.action',
                                 function( data, textStatus, jqXHR )
                                 {
                                     localStorage[getTagId( "Roots" )] = JSON.stringify( data.roots );

=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js	2011-08-24 12:23:30 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js	2011-08-25 09:02:12 +0000
@@ -59,6 +59,10 @@
  */
 $( document ).ready( function()
 {
+    $.ajaxSetup({
+        type: 'POST'
+    });
+
     selection.setListenerFunction( organisationUnitSelected );
     $( '#loaderSpan' ).show();