From 0f99cb0a4ef19903f15f3ed5e651a2b7f537812a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilja=20Karta=C5=A1ov?= Date: Fri, 26 Apr 2019 16:01:47 +0200 Subject: [PATCH] Fix ajax handler name --- static/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/main.js b/static/main.js index 55c2f05..3a07e00 100644 --- a/static/main.js +++ b/static/main.js @@ -137,8 +137,8 @@ function JStuffAjax(attr) { this.onReadyStateChange = function() { if (this.request.readyState == 4) { if (this.request.status === 200) { - if (typeof (this.attr.load) !== 'undefined') { - this.attr.load(this.request.status, this.request.responseText); + if (typeof (this.attr.handler) !== 'undefined') { + this.attr.handler(this.request.status, this.request.responseText); } } return true;