← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6335: Minor fix

 

------------------------------------------------------------
revno: 6335
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-03-21 15:04:59 +0100
message:
  Minor fix
modified:
  resources/util/index.html


--
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 'resources/util/index.html'
--- resources/util/index.html	2012-03-21 11:39:43 +0000
+++ resources/util/index.html	2012-03-21 14:04:59 +0000
@@ -27,7 +27,7 @@
 
 var base = "http://apps.dhis2.org/demo/";;
 	
-function setDivs() {
+function setLinks() {
   jQuery("#map1").attr("src", base + "api/maps/mVHksDN1dIP/data");
   jQuery("#map2").attr("src", base + "api/maps/Y8dSQ3fH0Xe/data");
   jQuery("#map3").attr("src", base + "api/maps/JlXSUIcLsmd/data");
@@ -37,15 +37,11 @@
 }
 
 jQuery(document).ready(function() {
-  $.ajax({
-	url: base + "dhis-web-commons-security/login.action",
-	type: "POST",
-        data: {
-            j_username: "admin",
-            j_password: "district"
-        },
-	success: setDivs
-  });
+  $.post( base + "dhis-web-commons-security/login.action", { 
+      j_username: "admin", j_password: "district" 
+    },
+    setLinks
+  );
 });
 
 </script>