summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/application.js
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-08-12 17:23:19 -0500
committerDouwe Maan <douwe@selenight.nl>2016-08-12 17:23:19 -0500
commitc770201061c5d39e6e297951badfafc8ddf14906 (patch)
tree72da00c88358d605f33c983945dd7e1565956c47 /app/assets/javascripts/application.js
parent9d9b7212bc5fe04e64a0a034a412f5d92cc96151 (diff)
parent11eefba891f214eefc1efa334adbcc9e979c0ce3 (diff)
downloadgitlab-ce-c770201061c5d39e6e297951badfafc8ddf14906.tar.gz
Merge branch 'master' into diff-line-comment-vuejs
Diffstat (limited to 'app/assets/javascripts/application.js')
-rw-r--r--app/assets/javascripts/application.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js
index 933f844d1da..6c44b76c5fe 100644
--- a/app/assets/javascripts/application.js
+++ b/app/assets/javascripts/application.js
@@ -292,7 +292,7 @@
$('.page-with-sidebar').toggleClass('page-sidebar-collapsed page-sidebar-expanded').removeClass('page-sidebar-pinned');
$('.navbar-fixed-top').removeClass('header-pinned-nav');
}
- return $document.off('click', '.js-nav-pin').on('click', '.js-nav-pin', function(e) {
+ $document.off('click', '.js-nav-pin').on('click', '.js-nav-pin', function(e) {
var $page, $pinBtn, $tooltip, $topNav, doPinNav, tooltipText;
e.preventDefault();
$pinBtn = $(e.currentTarget);
@@ -320,6 +320,8 @@
$tooltip.find('.tooltip-inner').text(tooltipText);
return $pinBtn.attr('title', tooltipText).tooltip('fixTitle');
});
- });
+ // Custom time ago
+ gl.utils.shortTimeAgo($('.js-short-timeago'));
+ });
}).call(this);