Author: jmorliaguet
Date: Sun Jun 11 12:43:58 2006
New Revision: 3395

Modified:
   cpsskins/branches/paris-sprint-2006/lib/cpsskins/src/cpsskins.js

Log:

- added a hide() method to hide all the views in a same perspective



Modified: cpsskins/branches/paris-sprint-2006/lib/cpsskins/src/cpsskins.js
==============================================================================
--- cpsskins/branches/paris-sprint-2006/lib/cpsskins/src/cpsskins.js    
(original)
+++ cpsskins/branches/paris-sprint-2006/lib/cpsskins/src/cpsskins.js    Sun Jun 
11 12:43:58 2006
@@ -1133,6 +1133,11 @@
 
   goBack: function() {
     this.switchTo(this._previous);
+  },
+
+  hide: function(perspective) {
+    var to_hide = this._visible_views[perspective] || [];
+    to_hide.each(function(v) { CPSSkins.getViewById(v).hide(); });
   }
 
 });
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to