From 0575eb2a7943c3f9b4aeaed165650c5339c9a6fa Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 15 Nov 2015 20:51:27 -0800 Subject: [PATCH] Add default for options in $.ajax. Fixes bugs caused by 8aa780cc33333e543b741f878098c3b2b142b7cd. --- src/General/$.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/General/$.coffee b/src/General/$.coffee index c34478460..ae0382f4b 100644 --- a/src/General/$.coffee +++ b/src/General/$.coffee @@ -53,7 +53,7 @@ $.ajax = do -> ) %> $('span', message).textContent = (if /^\/\//.test url then location.protocol else '') + url new Notice 'error', message, 30, -> delete blockedURLs[url] - (url, options, extra={}) -> + (url, options={}, extra={}) -> {type, whenModified, upCallbacks, form} = extra r = new XMLHttpRequest() type or= form and 'post' or 'get'