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