Author: jmorliaguet
Date: Sun Feb  5 10:56:54 2006
New Revision: 2294

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

- make it possible for remote storages to only have a getter or a setter



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 
10:56:54 2006
@@ -829,6 +829,7 @@
     var storage = this;
 
     var url = model.def.storage.accessors.get;
+    if (!url) return;
     new Ajax.Request(url, {
       onComplete: function(req) {
         var data = JSON.parse(req.responseText);
@@ -843,6 +844,7 @@
     var storage = this;
 
     var url = model.def.storage.accessors.set;
+    if (!url) return;
     new Ajax.Request(url, {
       method: "post",
       parameters: $H({
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to