Author: sevein
Date: Thu Aug 23 13:35:38 2012
New Revision: 12177

Log:
In the treeview the immediate ancestor can be clicked nwo to browse its siblings

Modified:
   trunk/css/graphic.css
   trunk/js/treeView.js

Modified: trunk/css/graphic.css
==============================================================================
--- trunk/css/graphic.css       Thu Aug 23 11:14:28 2012        (r12176)
+++ trunk/css/graphic.css       Thu Aug 23 13:35:38 2012        (r12177)
@@ -307,6 +307,11 @@
   padding-left: 0px;
 }
 
+#treeview .immediate-ancestor
+{
+  border-bottom: 1px solid #ccc;
+}
+
 #treeview .active
 {
   background-color: #F1E6D4;
@@ -349,10 +354,10 @@
   cursor: pointer;
 }
 
-#treeview .ancestor i { background-position: -10px 0px; } /* left */
-#treeview .immediate-ancestor i { background-position: 0px 0px; cursor: 
default; } /* left */
-#treeview .back i { background-position: -10px 0px; } /* left */
-#treeview .expand i { background-position: -20px 0px; } /* right */
+#treeview .ancestor i { background-position: -10px 0px; } /* left arrow */
+#treeview .immediate-ancestor i { background-position: 0px 0px; } /* down 
arrow */
+#treeview .back i { background-position: -10px 0px; } /* left arrow */
+#treeview .expand i { background-position: -20px 0px; } /* right arrow */
 
 #treeview a:hover
 {

Modified: trunk/js/treeView.js
==============================================================================
--- trunk/js/treeView.js        Thu Aug 23 11:14:28 2012        (r12176)
+++ trunk/js/treeView.js        Thu Aug 23 13:35:38 2012        (r12177)
@@ -360,12 +360,14 @@
           return;
         }
 
+        // Expand button
         if ($li.hasClass('more'))
         {
           killEvent(e);
 
           return this.showMore($li);
         }
+        // Back to an ancestor
         else if ($li.hasClass('back'))
         {
           killEvent(e);
@@ -374,7 +376,11 @@
         }
         else if ('I' === e.target.tagName)
         {
-          if ($li.hasClass('ancestor'))
+          if ($li.hasClass('immediate-ancestor'))
+          {
+            $li.prev().find('i').trigger('click');
+          }
+          else if ($li.hasClass('ancestor'))
           {
             if (!$li.next().hasClass('ancestor'))
             {

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to