From 2ce08cd1e7fa8770c0e4dbcb7f1e80ed1c101bc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Lube=20de=20Bragan=C3=A7a?= Date: Tue, 9 Oct 2018 18:45:03 +0000 Subject: [PATCH] FIX: correctly gets the license id --- assets/js/app.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/app.coffee b/assets/js/app.coffee index f386e45..cce2d26 100644 --- a/assets/js/app.coffee +++ b/assets/js/app.coffee @@ -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