Author: jmorliaguet
Date: Wed Jun  7 19:41:02 2006
New Revision: 3346

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

Log:

- using local variables



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    Wed Jun 
 7 19:41:02 2006
@@ -730,6 +730,7 @@
         if (content_type.match(/^text\/x-json/)) {
           var data = JSON.parse(req.responseText);
           view.model.updateData(data);
+          alert(view.model.hash());
         }
         views.entries().each(function(v) {
           CPSSkins.getViewById(v).refresh();
@@ -1747,7 +1748,7 @@
     var results = document.cookie.match(this.cookie_name + '=(.*?)(;|$)');
     if (results) {
       var value = unescape(results[1]);
-      data = JSON.parse(value);
+      var data = JSON.parse(value);
       this.write(data);
     } else {
       return;
@@ -1756,7 +1757,7 @@
 
   storeData: function(data) {
     var stored_data = this.write(data);
-    value = escape(JSON.stringify(stored_data));
+    var value = escape(JSON.stringify(stored_data));
     document.cookie = this.cookie_name + '=' + value + '; path=/';
   }
 
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to