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