Use gon.shortcuts_path directly
This commit is contained in:
parent
9db02e5ba9
commit
d4f6d39896
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue