← Back to team overview

dhis2-devs team mailing list archive

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

 

------------------------------------------------------------
revno: 4767
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2011-09-29 14:57:18 +0200
message:
  Minor fix
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.js
  dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/document.js
  dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/report.js
  dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/table.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-commons-resources/src/main/webapp/main.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.js	2011-08-19 09:04:34 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.js	2011-09-29 12:57:18 +0000
@@ -168,14 +168,12 @@
 
     function setMenuVisible()
     {
-        var request = new Request();
-        request.send( '../dhis-web-commons/menu/setMenuVisible.action' );        
+        $.get( '../dhis-web-commons/menu/setMenuVisible.action' );        
     }
     
     function setMenuHidden()
     {        
-        var request = new Request();
-        request.send( '../dhis-web-commons/menu/setMenuHidden.action' );        
+        $.get( '../dhis-web-commons/menu/setMenuHidden.action' );        
     }    
     
     this.openHelpForm = function( id )

=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/document.js'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/document.js	2011-06-23 14:38:00 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/document.js	2011-09-29 12:57:18 +0000
@@ -9,8 +9,7 @@
 
     if ( dialog )
     {
-        var request = new Request();
-        request.send( "addDocumentToDashboard.action?id=" + id );
+        $.get( "addDocumentToDashboard.action?id=" + id );
     }
 }
 

=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/report.js'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/report.js	2011-06-23 14:38:00 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/report.js	2011-09-29 12:57:18 +0000
@@ -14,7 +14,6 @@
 
     if ( dialog )
     {
-        var request = new Request();
-        request.send( "addReportToDashboard.action?id=" + id );
+        $.get( "addReportToDashboard.action?id=" + id );
     }
 }

=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/table.js'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/table.js	2011-09-29 06:40:09 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/table.js	2011-09-29 12:57:18 +0000
@@ -207,7 +207,6 @@
 
     if ( dialog )
     {
-        var request = new Request();
-        request.send( "addReportTableToDashboard.action?id=" + id );
+        $.get( "addReportTableToDashboard.action?id=" + id );
     }
 }