[Git][noosfero/noosfero][stable-2.2] uploaded-files: fix js to es5
Rodrigo Souto
gitlab at mg.gitlab.com
Tue Jun 12 21:34:31 BRT 2018
Rodrigo Souto pushed to branch stable-2.2 at Noosfero / noosfero
Commits:
9ae2313d by Rodrigo Souto at 2018-06-13T00:33:43Z
uploaded-files: fix js to es5
- - - - -
1 changed file:
- public/javascripts/upload-file.js
Changes:
=====================================
public/javascripts/upload-file.js
=====================================
--- a/public/javascripts/upload-file.js
+++ b/public/javascripts/upload-file.js
@@ -1,10 +1,10 @@
function loadMoreComments() {
- let commentList = $('#article-comments-list');
- let pageId = commentList.data('page');
- let profile = commentList.data('profile');
- let nextCommentPage = commentList.data('comment-page') + 1;
+ var commentList = $('#article-comments-list');
+ var pageId = commentList.data('page');
+ var profile = commentList.data('profile');
+ var nextCommentPage = commentList.data('comment-page') + 1;
- $.get(`/${profile}/${pageId}/view_more_comments`, {
+ $.get('/' + profile + '/' + pageId + '/view_more_comments', {
comment_page: nextCommentPage,
id: pageId,
dataType: 'json'
@@ -16,7 +16,7 @@ function loadMoreComments() {
}
function bindScroll() {
- let loadingPoint = $(document).height() - 300;
+ var loadingPoint = $(document).height() - 300;
if ($(window).scrollTop() + $(window).height() > loadingPoint) {
$(window).unbind('scroll');
loadMoreComments();
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/9ae2313dfb811dfbc3a389f7c97cd52ac19dec98
--
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/9ae2313dfb811dfbc3a389f7c97cd52ac19dec98
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20180613/61bf803d/attachment-0001.html>
More information about the Noosfero-dev
mailing list