Author: jmorliaguet
Date: Sun May  7 18:36:05 2006
New Revision: 3068

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

Log:

- made it possible to pass parameters to custom widgets



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 May 
 7 18:36:05 2006
@@ -2073,7 +2073,13 @@
           );
         }
       }
-      new Ajax.Request(url, options);
+      var parts = url.split('?');
+      var method = url;
+      if (parts.length == 2) {
+        method = parts[0];
+      }
+      options.parameters = parts[1];
+      new Ajax.Request(method, options);
 
       CPSSkins.registerEventHandler("loaded template", view, function(event) {
         var view = event.subscriber;
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to