aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-05-22 13:31:12 -0400
committerPaul Duncan <pabs@pablotron.org>2016-05-22 13:31:12 -0400
commit0ee3e2b4353b2dde3a2362c9be9c76fcb5d8ffc8 (patch)
tree3f47827fac880bfdee7657172316a020a10fb41a /data
parent66d2f67e35efb06c38deaacc9bfdd27aca4b2714 (diff)
downloadguff-0ee3e2b4353b2dde3a2362c9be9c76fcb5d8ffc8.tar.bz2
guff-0ee3e2b4353b2dde3a2362c9be9c76fcb5d8ffc8.zip
clean up assets/js/util.js
Diffstat (limited to 'data')
-rw-r--r--data/assets/js/util.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/data/assets/js/util.js b/data/assets/js/util.js
index ed048ec..3abaabe 100644
--- a/data/assets/js/util.js
+++ b/data/assets/js/util.js
@@ -1,4 +1,6 @@
-$.fn.reduce = (function() {
+jQuery.fn.reduce = (function() {
+ "use strict";
+
if (Array.prototype.reduce) {
return Array.prototype.reduce;
} else {
@@ -18,7 +20,7 @@ jQuery(function($) {
window.send = function(fn, args) {
return $.ajax({
- url: "/api/" + fn,
+ url: "/guff/api/" + fn,
method: 'POST',
dataType: 'json',
data: args,