dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #38479
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19595: minor fix, properly handle json error message in dashboard.js
------------------------------------------------------------
revno: 19595
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-07-09 13:22:02 +0700
message:
minor fix, properly handle json error message in dashboard.js
modified:
dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dashboard.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-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dashboard.js'
--- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dashboard.js 2015-05-13 12:11:33 +0000
+++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dashboard.js 2015-07-09 06:22:02 +0000
@@ -836,7 +836,8 @@
}
},
error: function( xhr ) {
- setHeaderDelayMessage( xhr.responseText );
+ var error = JSON.parse( xhr.responseText );
+ setHeaderDelayMessage( error.message );
}
} );
}