dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #12563
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3895: fixed bug when removing/adding charts on the dashboard
------------------------------------------------------------
revno: 3895
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2011-06-14 10:04:40 +0200
message:
fixed bug when removing/adding charts on the dashboard
modified:
dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dropdown.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/dropdown.js'
--- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dropdown.js 2011-06-14 08:01:50 +0000
+++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dropdown.js 2011-06-14 08:04:40 +0000
@@ -1,17 +1,22 @@
function setAreaItem( area, item )
{
- $.get("setAreaItem.action?area=" + area + "&item=" + item, function()
+ $.get( "setAreaItem.action", {
+ 'area' : area,
+ 'item' : item
+ }, function()
{
window.location.href = "index.action";
- });
+ } );
}
function clearArea( area )
{
- $.get("clearArea.action?area=" + area, function()
+ $.get( "clearArea.action", {
+ 'area' : area
+ }, function()
{
window.location.href = "index.action";
- });
+ } );
}
function viewChart( url )
@@ -19,13 +24,13 @@
var width = 700 + 20;
var height = 500 + 20;
- $('#chartImage').attr('src', url);
- $('#chartView').dialog({
+ $( '#chartImage' ).attr( 'src', url );
+ $( '#chartView' ).dialog( {
autoOpen : true,
modal : true,
height : height + 35,
width : width,
resizable : false,
title : 'Viewing Chart'
- });
+ } );
}