summaryrefslogtreecommitdiffstats
path: root/assets/js/watched_widget.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/watched_widget.js')
-rw-r--r--assets/js/watched_widget.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/js/watched_widget.js b/assets/js/watched_widget.js
index 4a5cfd2d..1e88fa27 100644
--- a/assets/js/watched_widget.js
+++ b/assets/js/watched_widget.js
@@ -6,7 +6,7 @@ function mark_watched(target) {
'&id=' + target.getAttribute('data-id');
var xhr = new XMLHttpRequest();
xhr.responseType = 'json';
- xhr.timeout = 20000;
+ xhr.timeout = 10000;
xhr.open('POST', url, true);
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
@@ -31,7 +31,7 @@ function mark_unwatched(target) {
'&id=' + target.getAttribute('data-id');
var xhr = new XMLHttpRequest();
xhr.responseType = 'json';
- xhr.timeout = 20000;
+ xhr.timeout = 10000;
xhr.open('POST', url, true);
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');