Author: jmorliaguet
Date: Sat Feb 25 16:17:33 2006
New Revision: 2458

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

- added a function for refreshing the view



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 Sat Feb 25 
16:17:33 2006
@@ -1312,6 +1312,11 @@
     }
   },
 
+  refresh: function() {
+    var data = this.getData();
+    if (data) this.display(data);
+  },
+
   display: function(data) {
     this.render(data);
     if (this.def.render_effect) {
@@ -1327,9 +1332,8 @@
     CPSSkins.notify("gained focus", {'publisher': this,
                                      'context': this.selected});
 
-    // get new data and display the view
-    var data = this.getData();
-    if (data) this.display(data);
+    // refresh the view
+    this.refresh();
 
     // prepare the view
     this.prepare();
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to