Author: jmorliaguet
Date: Tue Mar 21 12:26:47 2006
New Revision: 2675

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

- better encapsulation: only the view in which the click event occured is
  refreshed.



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 Tue Mar 21 
12:26:47 2006
@@ -601,13 +601,15 @@
   },
 
   clickEvent: function(e) {
-    var target = Event.element(e);
+    var target = $(Event.element(e));
     if (target.tagName.toLowerCase() == 'a') {
 
       var _request = this._request;
       this.views.entries().each(function(v) {
         var view = CPSSkins.getViewById(v);
-        _request(view, target.href);
+        if (target.childOf(view.widget)) {
+          _request(view, target.href);
+        }
       });
 
       Event.stop(e);
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to