summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/profile
diff options
context:
space:
mode:
authorConnor Shea <connor.james.shea@gmail.com>2016-06-29 15:32:52 -0600
committerConnor Shea <connor.james.shea@gmail.com>2016-06-29 15:36:24 -0600
commit7b9b2ce3c520df8475f1fe4b8aa72a8ce3a687b4 (patch)
tree1deaaca2326870f4d864cea2fea73a9564843b82 /app/assets/javascripts/profile
parenta99e5cd810b28dda83d3b7809fdf9f0f8031ef7a (diff)
downloadgitlab-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.coffee2
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()