=== 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
+ );
});