From ca87f72b7f8fd2864ec9b17cf0b6b29090493384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilja=20Karta=C5=A1ov?= Date: Fri, 26 Apr 2019 15:50:40 +0200 Subject: [PATCH] Fix AJAX handler context --- static/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/main.js b/static/main.js index 531a913..6e1d45c 100644 --- a/static/main.js +++ b/static/main.js @@ -455,8 +455,6 @@ var gCore = { function Contact() { - var t = this; - this.email = $('#feedback__email'); this.msg = $('#feedback__msg'); @@ -473,6 +471,7 @@ function Contact() }; this.onSubmit = function(evt) { + var t = this; $.ajax({ url: '/hook/feedback/', handler: function(httpStatus, content) {t.onLoad(httpStatus, content)},