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:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-04-21 20:47:09 +0300
committerAlfredo Sumaran <alfredo@gitlab.com>2016-04-21 20:47:09 +0300
commitd4f6d39896392a964c254ad542eeefeb7c254093 (patch)
tree456d633b510bdb44f3f752a7d899893614f161f2 /app/assets
parent9db02e5ba994d6ba7ebd7954031652c76279c632 (diff)
Use gon.shortcuts_path directly
Diffstat (limited to 'app/assets')
-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