[Jifty-commit] jifty branch, jifty_client, updated. 0765dff991ba89e190d110ceb961f6d06d1c35d0

Jifty commits jifty-commit at lists.jifty.org
Sun May 2 08:32:07 EDT 2010


The branch, jifty_client has been updated
       via  0765dff991ba89e190d110ceb961f6d06d1c35d0 (commit)
       via  6e994b5f8d00213201468ec362375cf761c467ae (commit)
      from  57d769d4386cacf8dd42611c45e16ab0b1dfe2fc (commit)

Summary of changes:
 share/web/static/js/jifty_client.js |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit 6e994b5f8d00213201468ec362375cf761c467ae
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Sun May 2 20:31:52 2010 +0800

    Uppercase action name

diff --git a/share/web/static/js/jifty_client.js b/share/web/static/js/jifty_client.js
index 5a5e0fb..ebf1134 100644
--- a/share/web/static/js/jifty_client.js
+++ b/share/web/static/js/jifty_client.js
@@ -3,7 +3,7 @@ Class("JiftyModel", {
         sync: function (onSuccess, onFailure) {
             var record = this;
             var className = record.meta.getName();
-            var actionName = "update" + className;
+            var actionName = "Update" + className;
             var diff = {
                 id: record.id // we must always send this
             };

commit 0765dff991ba89e190d110ceb961f6d06d1c35d0
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Sun May 2 20:32:01 2010 +0800

    Don't require that the object has a jiftyClient

diff --git a/share/web/static/js/jifty_client.js b/share/web/static/js/jifty_client.js
index ebf1134..b9c7537 100644
--- a/share/web/static/js/jifty_client.js
+++ b/share/web/static/js/jifty_client.js
@@ -16,7 +16,7 @@ Class("JiftyModel", {
 
             // should we abort if diff contains only id?
 
-            this.jiftyClient.runAction(actionName, diff, onSuccess, onFailure);
+            this.meta.getClassObject().jiftyClient.runAction(actionName, diff, onSuccess, onFailure);
         }
     },
     classMethods: {
@@ -27,7 +27,6 @@ Class("JiftyModel", {
             var onAjaxSuccess = function (result) {
                 if (result.id) {
                     var record = that.meta.instantiate(result);
-                    record.jiftyClient = that.jiftyClient;
                     record._original = result;
                     onSuccess(record);
                 }

-----------------------------------------------------------------------


More information about the Jifty-commit mailing list