diff options
Diffstat (limited to 'data/assets/js')
-rw-r--r-- | data/assets/js/util.js | 6 |
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, |