diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-02-29 18:50:35 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-02-29 18:50:35 +0300 |
commit | 9f2eb025d34c99c96a762615fe2f7ea7c8dc8e50 (patch) | |
tree | 60132017279c0d8e2dc228bed5d1ebcb93be3d58 | |
parent | 1a94a569cfbaf035c859a1e9454af085ccf38e5a (diff) |
Apply nice date when diff page loads
-rw-r--r-- | app/assets/javascripts/merge_request_tabs.js.coffee | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/merge_request_tabs.js.coffee b/app/assets/javascripts/merge_request_tabs.js.coffee index 40cfa59a229..23a218b4c7d 100644 --- a/app/assets/javascripts/merge_request_tabs.js.coffee +++ b/app/assets/javascripts/merge_request_tabs.js.coffee @@ -146,6 +146,7 @@ class @MergeRequestTabs url: "#{source}.json" + @_location.search success: (data) => document.querySelector("div#diffs").innerHTML = data.html + $('.js-timeago').timeago() $('div#diffs .js-syntax-highlight').syntaxHighlight() @expandViewContainer() if @diffViewType() is 'parallel' @diffsLoaded = true |