← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11784: Dashboard, light grey color for disabled links

 

------------------------------------------------------------
revno: 11784
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2013-08-23 18:37:06 +0200
message:
  Dashboard, light grey color for disabled links
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	2013-08-23 12:52:24 +0000
+++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dashboard.js	2013-08-23 16:37:06 +0000
@@ -263,7 +263,7 @@
 function updateSharing( dashboard ) {
     $( '#dashboardMenu' ).data( 'canManage', dashboard.access.manage );
 
-    if( dashboard.access.manage ) {
+    if ( dashboard.access.manage ) {
         var manageLink = $( '<a/>' )
             .addClass( 'bold' )
             .text( i18n_manage )
@@ -275,24 +275,26 @@
             .text( i18n_share )
             .attr( 'href', 'javascript:showSharingDialog("dashboard", "' + dashboard.id + '")' );
         $( '#manageSharing' ).html( sharingLink );
-    } else {
+    } 
+    else 
+    {
         var manageLink = $( '<a/>' )
             .addClass( 'bold' )
-            .css({
+            .css( {
                 'cursor': 'default',
                 'text-decoration': 'none',
-                'color': 'black'
-            })
+                'color': '#888'
+            } )
             .text( i18n_manage );
         $( '#manageDashboard' ).html( manageLink );
 
         var sharingLink = $( '<a/>' )
             .addClass( 'bold' )
-            .css({
+            .css( {
                 'cursor': 'default',
                 'text-decoration': 'none',
-                'color': 'black'
-            })
+                'color': '#888'
+            } )
             .text( i18n_share );
         $( '#manageSharing' ).html( sharingLink );
     }