diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-06-29 15:32:52 -0600 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-06-29 15:36:24 -0600 |
commit | 7b9b2ce3c520df8475f1fe4b8aa72a8ce3a687b4 (patch) | |
tree | 1deaaca2326870f4d864cea2fea73a9564843b82 /app/assets/javascripts/profile | |
parent | a99e5cd810b28dda83d3b7809fdf9f0f8031ef7a (diff) | |
download | gitlab-ce-7b9b2ce3c520df8475f1fe4b8aa72a8ce3a687b4.tar.gz |
Add a helper function for getting the page path from JS.
Diffstat (limited to 'app/assets/javascripts/profile')
-rw-r--r-- | app/assets/javascripts/profile/profile.js.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/profile/profile.js.coffee b/app/assets/javascripts/profile/profile.js.coffee index b276242f506..f3b05f2c646 100644 --- a/app/assets/javascripts/profile/profile.js.coffee +++ b/app/assets/javascripts/profile/profile.js.coffee @@ -79,5 +79,5 @@ $ -> if comment && comment.length > 1 && $title.val() == '' $title.val(comment[1]).change() - if $('body').attr('data-page').split(':').first() == 'profiles' + if gl.utils.getPagePath() == 'profiles' new Profile() |