|
|
|
@ -11569,7 +11569,7 @@ var history = (0, _createBrowserHistory2.default)(); |
|
|
|
method: 'POST' |
|
|
|
method: 'POST' |
|
|
|
}).done(function (data) { |
|
|
|
}).done(function (data) { |
|
|
|
if (data.success === true) { |
|
|
|
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); |
|
|
|
likedCourseElement.attr('data-course-likes-count', data.likes_count); |
|
|
|
if (data.is_liked) { |
|
|
|
if (data.is_liked) { |
|
|
|
likedCourseElement.addClass('active'); |
|
|
|
likedCourseElement.addClass('active'); |
|
|
|
|