Expose shortcuts url from the backend via gon
Signed-off-by: Alfredo Sumaran <alfredo@gitlab.com>
This commit is contained in:
parent
eaedc49ea3
commit
21063c60ba
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue