1
0
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:
Felipe Lube de Bragança 2018-10-09 18:45:03 +00:00
parent 8f177d9c77
commit 2ce08cd1e7

View File

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