diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-04-13 13:11:48 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-04-18 15:04:28 -0500 |
commit | 21063c60ba7f149635440611706bb3ec0aa3a7be (patch) | |
tree | 13dd2e6c8295eb0145d27a3ec8424cf84d801466 | |
parent | eaedc49ea3775464d05678f2b8929e4d03a742d5 (diff) | |
download | gitlab-ce-21063c60ba7f149635440611706bb3ec0aa3a7be.tar.gz |
Expose shortcuts url from the backend via gon
Signed-off-by: Alfredo Sumaran <alfredo@gitlab.com>
-rw-r--r-- | app/assets/javascripts/shortcuts.js.coffee | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/assets/javascripts/shortcuts.js.coffee b/app/assets/javascripts/shortcuts.js.coffee index 945dce36675..1b23fa9eae8 100644 --- a/app/assets/javascripts/shortcuts.js.coffee +++ b/app/assets/javascripts/shortcuts.js.coffee @@ -21,8 +21,7 @@ class @Shortcuts $modal.modal('toggle') return - url = '/help/shortcuts' - url = gon.relative_url_root + url if gon.relative_url_root? + url = gon.relative_url_root + gon.shortcuts_path if gon.relative_url_root? $.ajax( url: url, dataType: 'script', |