diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-03-14 02:20:50 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-03-14 02:20:50 -0400 |
commit | cf90fa002afec60e2c057348de24ca1d8bcbaaa4 (patch) | |
tree | 574b1df80a060a56946f45309956f3d63bbcfabe /data/stuff/js | |
parent | e88219d9a4bbc85563a2ead6708641de389af4fa (diff) | |
download | old-guff-cf90fa002afec60e2c057348de24ca1d8bcbaaa4.tar.bz2 old-guff-cf90fa002afec60e2c057348de24ca1d8bcbaaa4.zip |
add test/{get_users,set_user}, js/util.js, lots more
Diffstat (limited to 'data/stuff/js')
-rw-r--r-- | data/stuff/js/util.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/data/stuff/js/util.js b/data/stuff/js/util.js new file mode 100644 index 0000000..a6826db --- /dev/null +++ b/data/stuff/js/util.js @@ -0,0 +1,12 @@ +jQuery(function($) { + "use strict"; + + window.send = function(fn, args) { + return $.ajax({ + url: "/api/" + fn, + method: 'POST', + dataType: 'json', + data: args, + }); + }; +}); |