mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +01:00
FIX: correctly gets the license id
This commit is contained in:
parent
8f177d9c77
commit
2ce08cd1e7
@ -86,7 +86,7 @@ class Choosealicense
|
||||
else
|
||||
response([])
|
||||
onSelect: (event, repository, item) ->
|
||||
licenseId = event.target.getAttribute("data-license-id")
|
||||
licenseId = document.getElementById("reposiory-search").getAttribute("data-license-id")
|
||||
if licenseId
|
||||
window.open 'https://github.com/'+repository+'/community/license/new?template='+licenseId
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user