Commit d4f6d398 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Use gon.shortcuts_path directly

parent 9db02e5b
...@@ -21,9 +21,8 @@ class @Shortcuts ...@@ -21,9 +21,8 @@ class @Shortcuts
$modal.modal('toggle') $modal.modal('toggle')
return return
url = gon.relative_url_root + gon.shortcuts_path if gon.relative_url_root?
$.ajax( $.ajax(
url: url, url: gon.shortcuts_path,
dataType: 'script', dataType: 'script',
success: (e) -> success: (e) ->
if location and location.length > 0 if location and location.length > 0
......
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