From 031daa32bbe11417d0dfb968dfbf888f0dc65d86 Mon Sep 17 00:00:00 2001 From: raylu Date: Sun, 20 Oct 2013 03:07:32 -0700 Subject: rewrite as api --- web/static/js/common.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 web/static/js/common.js (limited to 'web/static/js/common.js') diff --git a/web/static/js/common.js b/web/static/js/common.js new file mode 100644 index 0000000..4592cbe --- /dev/null +++ b/web/static/js/common.js @@ -0,0 +1,6 @@ +window.ykill.api = function (path, cb) { + new Request.JSON({ + 'url': ykill.api_host + path, + 'onSuccess': cb, + }).get(); +} -- cgit v1.2.3