summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-04-21 12:47:09 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2016-04-21 12:47:09 -0500
commitd4f6d39896392a964c254ad542eeefeb7c254093 (patch)
tree456d633b510bdb44f3f752a7d899893614f161f2
parent9db02e5ba994d6ba7ebd7954031652c76279c632 (diff)
downloadgitlab-ce-d4f6d39896392a964c254ad542eeefeb7c254093.tar.gz
Use gon.shortcuts_path directly
-rw-r--r--app/assets/javascripts/shortcuts.js.coffee3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/assets/javascripts/shortcuts.js.coffee b/app/assets/javascripts/shortcuts.js.coffee
index 1b23fa9eae8..f3d66004138 100644
--- a/app/assets/javascripts/shortcuts.js.coffee
+++ b/app/assets/javascripts/shortcuts.js.coffee
@@ -21,9 +21,8 @@ class @Shortcuts
$modal.modal('toggle')
return
- url = gon.relative_url_root + gon.shortcuts_path if gon.relative_url_root?
$.ajax(
- url: url,
+ url: gon.shortcuts_path,
dataType: 'script',
success: (e) ->
if location and location.length > 0