Use gon.shortcuts_path directly

This commit is contained in:
Alfredo Sumaran 2016-04-21 12:47:09 -05:00
parent 9db02e5ba9
commit d4f6d39896
1 changed files with 1 additions and 2 deletions

View File

@ -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