dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #19899
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8874: mobile: minor change..
------------------------------------------------------------
revno: 8874
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2012-11-05 12:47:06 +0100
message:
mobile: minor change..
modified:
dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/dhis-web-mobile-resources/js/dhis2.storage.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-mobile/src/main/webapp/dhis-web-mobile-resources/js/dhis2.storage.js'
--- dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/dhis-web-mobile-resources/js/dhis2.storage.js 2012-11-05 10:48:22 +0000
+++ dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/dhis-web-mobile-resources/js/dhis2.storage.js 2012-11-05 11:47:06 +0000
@@ -36,8 +36,9 @@
dhis2.storage.FormManager.prototype.getMetaData = function () {
return $.ajax({
- url : '../api/currentUser/forms',
- dataType : 'json'
+ url : '../api/currentUser/forms',
+ dataType : 'json',
+ cache : false
}).success(function ( data ) {
// clear out old localStorage, some phones doesn't like it when you overwrite old keys
delete localStorage['organisationUnits'];
@@ -109,10 +110,11 @@
dhis2.storage.makeUploadDataValueSetRequest = function( dataValueSet ) {
return $.ajax({
- url: '../api/dataValueSets',
- type: 'POST',
- contentType: 'application/json',
- data: JSON.stringify( dataValueSet )
+ url : '../api/dataValueSets',
+ type : 'POST',
+ cache : false,
+ contentType : 'application/json',
+ data : JSON.stringify( dataValueSet )
});
};