BigW Consortium Gitlab

Commit 21063c60 by Alfredo Sumaran

Expose shortcuts url from the backend via gon

parent eaedc49e
...@@ -21,8 +21,7 @@ class @Shortcuts ...@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment