Expose shortcuts url from the backend via gon

Signed-off-by: Alfredo Sumaran <alfredo@gitlab.com>
This commit is contained in:
Alfredo Sumaran 2016-04-13 13:11:48 -05:00
parent eaedc49ea3
commit 21063c60ba
1 changed files with 1 additions and 2 deletions

View File

@ -21,8 +21,7 @@ class @Shortcuts
$modal.modal('toggle') $modal.modal('toggle')
return return
url = '/help/shortcuts' url = gon.relative_url_root + gon.shortcuts_path if gon.relative_url_root?
url = gon.relative_url_root + url if gon.relative_url_root?
$.ajax( $.ajax(
url: url, url: url,
dataType: 'script', dataType: 'script',