Author: jmorliaguet Date: Sun Feb 5 21:54:14 2006 New Revision: 2302 Modified: cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js Log:
- make it possible to pass parameters to the remote storage 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 Sun Feb 5 21:54:14 2006 @@ -854,13 +854,19 @@ var url = model.def.storage.accessors.get; if (!url) return; - new Ajax.Request(url, { + var options = { onComplete: function(req) { var data = JSON.parse(req.responseText); storage.write(data); CPSSkins.notify('stored', storage); } - }); + } + var parts = url.split('?'); + if (parts.length == 2) { + var url = parts[0]; + options.parameters = parts[1]; + } + new Ajax.Request(url, options); }, storeData: function(data) { -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins