[Git][noosfero/noosfero][master] uploaded-files: fix js to es5

Rodrigo Souto gitlab at mg.gitlab.com
Tue Jun 12 21:34:14 BRT 2018


Rodrigo Souto pushed to branch master at Noosfero / noosfero


Commits:
7aa203b1 by Rodrigo Souto at 2018-06-13T00:34:03Z
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/7aa203b18e953b78484b673b3936b7ec6dc4cf0f

-- 
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/7aa203b18e953b78484b673b3936b7ec6dc4cf0f
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/039375ef/attachment-0001.html>


More information about the Noosfero-dev mailing list