Author: jmorliaguet
Date: Thu Jan  5 23:11:00 2006
New Revision: 2150

Modified:
   cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js
Log:

- fixed bug



Modified: cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js
==============================================================================
--- cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js (original)
+++ cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js Thu Jan  5 
23:11:00 2006
@@ -67,8 +67,10 @@
     var to_hide = [];
     CPSSkins.Perspectives.each(function(s) {
       var elements = s[1];
-      perspective.split(":").each(function(p)  {
-        if (p.match(s[0]) || s[0] == perspective) {
+      var path = perspective.split(":");
+      path.each(function(p, index)  {
+        var subpath = path.slice(0,index+1).join(":");
+        if (s[0] == subpath) {
           elements.each(function(el) { to_show.push(el) } );
         } else {
           elements.each(function(el) { to_hide.push(el) } );
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to