[Jifty-commit] jifty branch, jifty_client, updated. 78479fe6745aa55284ebfba8544a45a8742b6792
Jifty commits
jifty-commit at lists.jifty.org
Fri Apr 30 06:58:15 EDT 2010
The branch, jifty_client has been updated
via 78479fe6745aa55284ebfba8544a45a8742b6792 (commit)
from b381039f230528a58fdcdde54ccb37a0bed12118 (commit)
Summary of changes:
share/web/static/js/jifty_client.js | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 78479fe6745aa55284ebfba8544a45a8742b6792
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Fri Apr 30 18:58:13 2010 +0800
Prepend the baseUrl if we've got one
diff --git a/share/web/static/js/jifty_client.js b/share/web/static/js/jifty_client.js
index bea8982..9f60ba8 100644
--- a/share/web/static/js/jifty_client.js
+++ b/share/web/static/js/jifty_client.js
@@ -34,8 +34,13 @@ Class("JiftyClient", {
}
};
+ var url = "/=/action/" + name + ".json";
+ if (this.baseUrl) {
+ url = this.baseUrl + url;
+ }
+
jQuery.ajax({
- url: "/=/action/" + name + ".json",
+ url: url,
data: params,
dataType: "json",
type: 'POST',
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list