← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4006: made move up/down buttons not use <a/> since this made the page jump when clicked on

 

------------------------------------------------------------
revno: 4006
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2011-06-23 17:27:06 +0300
message:
  made move up/down buttons not use <a/> since this made the page jump when clicked on
modified:
  dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/addChartOrganisationUnitModeForm.vm
  dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/addChartOrgunitOrPeriodForm.vm


--
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-reporting/src/main/webapp/dhis-web-reporting/addChartOrganisationUnitModeForm.vm'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/addChartOrganisationUnitModeForm.vm	2011-06-14 12:47:22 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/addChartOrganisationUnitModeForm.vm	2011-06-23 14:27:06 +0000
@@ -50,8 +50,8 @@
         </select>
     </td>
     <td>
-        <a href="#" onclick="moveUpSelectedOption( 'selectedOrganisationUnits' )"><img src="../images/move_up.png" border="0" alt=""></a><br><br>
-        <a href="#" onclick="moveDownSelectedOption( 'selectedOrganisationUnits' )"><img src="../images/move_down.png" border="0" alt=""></a>        
+        <img src="../images/move_up.png" style="cursor: pointer;" border="0" alt="" onclick="moveUpSelectedOption( 'selectedOrganisationUnits' )" /><br/><br/>
+        <img src="../images/move_down.png" style="cursor: pointer;" border="0" alt="" onclick="moveDownSelectedOption( 'selectedOrganisationUnits' )" />        
     </td>
 </tr>
 <tr>

=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/addChartOrgunitOrPeriodForm.vm'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/addChartOrgunitOrPeriodForm.vm	2011-03-28 20:09:32 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/addChartOrgunitOrPeriodForm.vm	2011-06-23 14:27:06 +0000
@@ -47,8 +47,8 @@
             </select>                  
         </td>
         <td>
-            <a href="#" onclick="moveUpSelectedOption( 'selectedIndicators' )"><img src="../images/move_up.png" border="0" alt=""></a><br><br>
-            <a href="#" onclick="moveDownSelectedOption( 'selectedIndicators' )"><img src="../images/move_down.png" border="0" alt=""></a>        
+            <img src="../images/move_up.png" style="cursor: pointer;" border="0" alt="" onclick="moveUpSelectedOption( 'selectedIndicators' )" /><br/><br/>
+            <img src="../images/move_down.png" style="cursor: pointer;" border="0" alt="" onclick="moveDownSelectedOption( 'selectedIndicators' )" />        
         </td>
     </tr>
     <tr>