diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-04-21 20:47:09 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-04-21 20:47:09 +0300 |
commit | d4f6d39896392a964c254ad542eeefeb7c254093 (patch) | |
tree | 456d633b510bdb44f3f752a7d899893614f161f2 /app/assets | |
parent | 9db02e5ba994d6ba7ebd7954031652c76279c632 (diff) |
Use gon.shortcuts_path directly
Diffstat (limited to 'app/assets')
-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 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 |