From bf8c831bc6e61e192bb6c54825835a82cfc8c314 Mon Sep 17 00:00:00 2001 From: Vitaly Baev Date: Mon, 29 Jan 2018 15:02:08 +0300 Subject: [PATCH 1/3] =?UTF-8?q?LIL-95=20-=20=D0=98=D1=81=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=BE=D0=B2=D0=B5?= =?UTF-8?q?=D0=B4=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BB=D0=B0=D0=B9=D0=BA=D0=BE?= =?UTF-8?q?=D0=B2=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/build/js/app.js | 2 +- web/src/js/modules/courses.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/build/js/app.js b/web/build/js/app.js index 0557a9e4..ef8c889d 100644 --- a/web/build/js/app.js +++ b/web/build/js/app.js @@ -11569,7 +11569,7 @@ var history = (0, _createBrowserHistory2.default)(); method: 'POST' }).done(function (data) { if (data.success === true) { - (0, _jquery2.default)(this).children('.likes__counter').text(data.likes_count); + likedCourseElement.children('.likes__counter').text(data.likes_count); likedCourseElement.attr('data-course-likes-count', data.likes_count); if (data.is_liked) { likedCourseElement.addClass('active'); diff --git a/web/src/js/modules/courses.js b/web/src/js/modules/courses.js index 11d6888e..64987bad 100644 --- a/web/src/js/modules/courses.js +++ b/web/src/js/modules/courses.js @@ -42,7 +42,7 @@ $(document).ready(function () { }) .done(function (data) { if (data.success === true) { - $(this).children('.likes__counter').text(data.likes_count); + likedCourseElement.children('.likes__counter').text(data.likes_count); likedCourseElement.attr('data-course-likes-count', data.likes_count); if (data.is_liked) { likedCourseElement.addClass('active'); From 2dd1020be121e53343dfd827ac5c3057a4d7099b Mon Sep 17 00:00:00 2001 From: Vitaly Baev Date: Mon, 29 Jan 2018 15:02:14 +0300 Subject: [PATCH 2/3] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=B2=D0=B5=D1=80=D1=81=D1=82=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/templates/lilcity/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/templates/lilcity/index.html b/project/templates/lilcity/index.html index ac332f56..7284fd38 100644 --- a/project/templates/lilcity/index.html +++ b/project/templates/lilcity/index.html @@ -53,7 +53,7 @@
-
+