← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8602: mobile: pass in null as context, and data as arg

 

------------------------------------------------------------
revno: 8602
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-10-19 20:54:09 +0200
message:
  mobile: pass in null as context, and data as arg
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-10-19 12:24:40 +0000
+++ dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/dhis-web-mobile-resources/js/dhis2.storage.js	2012-10-19 18:54:09 +0000
@@ -43,11 +43,11 @@
         localStorage['forms'] = JSON.stringify(data.forms);
 
         if(args.success) {
-            args.success.call(data);
+            args.success.call(null, data);
         }
     }).error(function () {
         // offline ? reuse meta-data already present
-        console.log("unable to load meta-data");
+            console.log("unable to load meta-data");
 
         if(args.error) {
             args.error.call();