Author: jfthomps
Date: Fri Sep 30 17:45:10 2011
New Revision: 1177750

URL: http://svn.apache.org/viewvc?rev=1177750&view=rev
Log:
VCL-348
Setting privileges in web gui -- Slightly broken

The 2 items mentioned in the JIRA issue must have been fixed in a previous 
release.  However, if no node had been previously selected, the default one was 
not being highlighted.  I corrected that and changed the color of the font for 
selected nodes to be black instead of white to make it easier to read.

Modified:
    incubator/vcl/trunk/web/css/vcl.css
    incubator/vcl/trunk/web/js/privileges.js

Modified: incubator/vcl/trunk/web/css/vcl.css
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/web/css/vcl.css?rev=1177750&r1=1177749&r2=1177750&view=diff
==============================================================================
--- incubator/vcl/trunk/web/css/vcl.css (original)
+++ incubator/vcl/trunk/web/css/vcl.css Fri Sep 30 17:45:10 2011
@@ -250,7 +250,7 @@
 
 .privtreeselected {
        background-color: #678db2;
-       color: white;
+       color: black;
 }
 
 #maintenancenotice {

Modified: incubator/vcl/trunk/web/js/privileges.js
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/web/js/privileges.js?rev=1177750&r1=1177749&r2=1177750&view=diff
==============================================================================
--- incubator/vcl/trunk/web/js/privileges.js (original)
+++ incubator/vcl/trunk/web/js/privileges.js Fri Sep 30 17:45:10 2011
@@ -130,11 +130,13 @@ function focusFirstNode(id) {
                }
                else {
                        fc.setSelected(false);
-                       tree._itemNodesMap[id][0].setSelected(true);
+                       //tree._itemNodesMap[id][0].setSelected(true);
+                       //tree._selectNode(tree._itemNodesMap[id][0]);
                        //dojo.addClass(tree._itemNodesMap[id][0].labelNode, 
'privtreeselected');
                }
+               tree._selectNode(tree._itemNodesMap[id][0]);
                tree.lastLabel = tree._itemNodesMap[id][0].labelNode;
-               //tree.lastLabel.focus();
+               dojo.addClass(tree._itemNodesMap[id][0].labelNode, 
'privtreeselected');
                tree.lastFocused = tree._itemNodesMap[id][0];
                var nodename = tree.lastLabel.innerHTML;
                updateNodeLabels(nodename);


Reply via email to