diff options
author | Phil Hughes <me@iamphill.com> | 2016-11-23 14:34:49 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-11-23 19:24:51 +0000 |
commit | a7486bcb77fff619e4e6b0ec05423b08db3d0fe9 (patch) | |
tree | 63df4e6197dc6b566c279d0dae31fdba0007b0e2 | |
parent | 8fcdfeaee23b87a1d7d8357e693ce7d9df97ab6a (diff) | |
download | gitlab-ce-fixed-commit-timeago.tar.gz |
Fixed commit time not rendering after initial page loadfixed-commit-timeago
Closes #24862
-rw-r--r-- | app/assets/javascripts/commits.js | 6 | ||||
-rw-r--r-- | changelogs/unreleased/fixed-commit-timeago.yml | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/app/assets/javascripts/commits.js b/app/assets/javascripts/commits.js index 951fb338f9d..3627aaf5080 100644 --- a/app/assets/javascripts/commits.js +++ b/app/assets/javascripts/commits.js @@ -1,4 +1,4 @@ -/* eslint-disable func-names, space-before-function-paren, wrap-iife, quotes, consistent-return, no-undef, no-return-assign, no-param-reassign, one-var, no-var, one-var-declaration-per-line, no-unused-vars, prefer-template, object-shorthand, comma-dangle, padded-blocks, max-len */ +/* eslint-disable func-names, space-before-function-paren, wrap-iife, quotes, consistent-return, no-undef, no-return-assign, no-param-reassign, one-var, no-var, one-var-declaration-per-line, no-unused-vars, prefer-template, object-shorthand, comma-dangle, padded-blocks, max-len, prefer-arrow-callback */ (function() { this.CommitsList = (function() { function CommitsList() {} @@ -13,7 +13,9 @@ return false; } }); - Pager.init(limit, false); + Pager.init(limit, false, false, function() { + gl.utils.localTimeAgo($('.js-timeago')); + }); this.content = $("#commits-list"); this.searchField = $("#commits-search"); return this.initSearch(); diff --git a/changelogs/unreleased/fixed-commit-timeago.yml b/changelogs/unreleased/fixed-commit-timeago.yml new file mode 100644 index 00000000000..295d8db63d0 --- /dev/null +++ b/changelogs/unreleased/fixed-commit-timeago.yml @@ -0,0 +1,4 @@ +--- +title: Fixed commit timeago not rendering after initial page +merge_request: +author: |