[Jifty-commit] jifty branch, jifty_client, updated. 613a511a2da8376b2718f2cabb08935713b1f3fc
Jifty commits
jifty-commit at lists.jifty.org
Fri Apr 30 05:54:55 EDT 2010
The branch, jifty_client has been updated
via 613a511a2da8376b2718f2cabb08935713b1f3fc (commit)
via 3ab66e6d113f55234e2e567efca9a424c51ac95b (commit)
from 5175909b51df07c50e9b96d7400109467aaf7765 (commit)
Summary of changes:
lib/Jifty/Web.pm | 2 ++
share/web/static/js/jifty_client.js | 27 +++++++++++++++++++++++++++
2 files changed, 29 insertions(+), 0 deletions(-)
create mode 100644 share/web/static/js/jifty_client.js
- Log -----------------------------------------------------------------
commit 3ab66e6d113f55234e2e567efca9a424c51ac95b
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Fri Apr 30 17:54:35 2010 +0800
Begin jifty_client
diff --git a/share/web/static/js/jifty_client.js b/share/web/static/js/jifty_client.js
new file mode 100644
index 0000000..09f2d04
--- /dev/null
+++ b/share/web/static/js/jifty_client.js
@@ -0,0 +1,27 @@
+Class("JiftyClient", {
+ has: {
+ baseUrl: {
+ is: "rw"
+ },
+ email: {
+ is: "rw"
+ },
+ password: {
+ is: "rw"
+ }
+ },
+ methods: {
+ runAction: function (name, params, onSuccess, onFailure) {
+ jQuery.ajax({
+ url: "/=/action/" + name + ".json",
+ async: false,
+ data: params,
+ dataType: "json",
+ type: 'POST',
+ error: onFailure,
+ success: onSuccess
+ });
+ }
+ }
+});
+
commit 613a511a2da8376b2718f2cabb08935713b1f3fc
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Fri Apr 30 17:54:54 2010 +0800
Add joose and jifty_client to our JS
diff --git a/lib/Jifty/Web.pm b/lib/Jifty/Web.pm
index edfba40..03069fb 100644
--- a/lib/Jifty/Web.pm
+++ b/lib/Jifty/Web.pm
@@ -35,6 +35,8 @@ __PACKAGE__->javascript_libs([qw(
json.js
jquery-1.4.1.js
iutil.js
+ joose.js
+ jifty_client.js
jifty_interface.js
jquery_noconflict.js
jquery.jgrowl.js
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list