[Jifty-commit] jifty branch, jifty_client, updated. a64dac54ccac9e8eb711a623aabe3c8748442463
Jifty commits
jifty-commit at lists.jifty.org
Sat May 1 01:58:09 EDT 2010
The branch, jifty_client has been updated
via a64dac54ccac9e8eb711a623aabe3c8748442463 (commit)
from 7fdefac9a12c3c8da19ee67861a0c0edcd165e26 (commit)
Summary of changes:
share/web/static/js/jifty_client.js | 16 ++++------------
1 files changed, 4 insertions(+), 12 deletions(-)
- Log -----------------------------------------------------------------
commit a64dac54ccac9e8eb711a623aabe3c8748442463
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Sat May 1 13:57:56 2010 +0800
Simplify mirrorModel now with the new .joose format
diff --git a/share/web/static/js/jifty_client.js b/share/web/static/js/jifty_client.js
index 6745d01..7be617d 100644
--- a/share/web/static/js/jifty_client.js
+++ b/share/web/static/js/jifty_client.js
@@ -54,24 +54,16 @@ Class("JiftyClient", {
success: onAjaxSuccess
});
},
- mirrorModel: function (modelName, className, onSuccess, onFailure) {
+ mirrorModel: function (modelName, onSuccess, onFailure) {
var that = this;
jQuery.ajax({
- url: this._includeBaseUrl("/=/model/" + modelName + ".json"),
- dataType: "json",
+ url: this._includeBaseUrl("/=/model/" + modelName + ".joose"),
+ dataType: "script",
type: 'GET',
error: onFailure,
- success: function (result) {
- onSuccess(that.buildClassFromModel(result, className));
- }
+ success: onSuccess
});
},
- buildClassFromModel: function (classStructure, className) {
- Class(className, {
- isa: JiftyModel,
- });
- return className;
- }
}
});
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list