Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Shea <connor.james.shea@gmail.com>2016-06-30 00:32:52 +0300
committerConnor Shea <connor.james.shea@gmail.com>2016-06-30 00:36:24 +0300
commit7b9b2ce3c520df8475f1fe4b8aa72a8ce3a687b4 (patch)
tree1deaaca2326870f4d864cea2fea73a9564843b82 /app/assets/javascripts/profile
parenta99e5cd810b28dda83d3b7809fdf9f0f8031ef7a (diff)
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()