From 4265123589bfcda84c49ba39ea89e044cff1e1d9 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Thu, 11 Feb 2021 23:34:02 -0700 Subject: [PATCH] Increase API request timeout to accommodate long notice slip file uploads --- www/assets/js/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/assets/js/util.js b/www/assets/js/util.js index 5d279be..b6d8ba4 100644 --- a/www/assets/js/util.js +++ b/www/assets/js/util.js @@ -31,7 +31,7 @@ function apirequest(url, data, success, error, method, username, password) { dataType: "json", method: method, data: data, - timeout: 10 * 1000, + timeout: 30 * 1000, beforeSend: function (xhr) { if (typeof username === 'string' && typeof password === 'string') { xhr.setRequestHeader("Authorization", "Basic " + btoa(username + ":" + password));