diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-10-11 22:03:19 +0300 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-10-11 22:03:19 +0300 |
commit | 16a97d644c442f67ff23caa4d744d8cfa06f144b (patch) | |
tree | e1c07b07361a8cf29994a57d3f996c6e19a46ec5 /app/assets/javascripts/users | |
parent | efeaf3bd41e60be1405b7e3ccfcfb6cb4747518c (diff) |
Removed d3.js from the users and graphs bundle
Diffstat (limited to 'app/assets/javascripts/users')
-rw-r--r-- | app/assets/javascripts/users/index.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/assets/javascripts/users/index.js b/app/assets/javascripts/users/index.js index 33a83f8dae5..9fd8452a2b6 100644 --- a/app/assets/javascripts/users/index.js +++ b/app/assets/javascripts/users/index.js @@ -1,7 +1,7 @@ import Cookies from 'js-cookie'; import UserTabs from './user_tabs'; -export default function initUserProfile(action) { +function initUserProfile(action) { // place profile avatars to top $('.profile-groups-avatars').tooltip({ placement: 'top', @@ -17,3 +17,9 @@ export default function initUserProfile(action) { $(this).parents('.project-limit-message').remove(); }); } + +document.addEventListener('DOMContentLoaded', () => { + const page = $('body').attr('data-page'); + const action = page.split(':')[1]; + initUserProfile(action); +}); |