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:
authorArtem Sidorenko <artem@posteo.de>2016-02-29 11:11:00 +0300
committerArtem Sidorenko <artem@posteo.de>2016-03-01 22:30:14 +0300
commit8be19db9d4e62842e17f7b71e83447f680fb2103 (patch)
treeb425aa546906922ef915380d3b51257fa1733efc /app/assets/javascripts/shortcuts.js.coffee
parentb8f8a55b8d76f5dfcb99f09159ca22e8124cdae4 (diff)
Fix help keyboard shortcut for relative URL setups
Diffstat (limited to 'app/assets/javascripts/shortcuts.js.coffee')
-rw-r--r--app/assets/javascripts/shortcuts.js.coffee4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/shortcuts.js.coffee b/app/assets/javascripts/shortcuts.js.coffee
index f141fb69c3e..9c7c2474aa4 100644
--- a/app/assets/javascripts/shortcuts.js.coffee
+++ b/app/assets/javascripts/shortcuts.js.coffee
@@ -13,8 +13,10 @@ class @Shortcuts
if $('#modal-shortcuts').length > 0
$('#modal-shortcuts').modal('show')
else
+ url = '/help/shortcuts'
+ url = gon.relative_url_root + url if gon.relative_url_root?
$.ajax(
- url: '/help/shortcuts',
+ url: url,
dataType: 'script',
success: (e) ->
if location and location.length > 0