mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 12:50:24 +01:00
Avoid popup blockers by using redirection
This commit is contained in:
parent
c070f17c1c
commit
dc0deb0326
@ -121,7 +121,8 @@ class LicenseSuggestion
|
|||||||
license = repositoryInfo.license
|
license = repositoryInfo.license
|
||||||
@setStatus "Error", @repositoryLicense repositoryFullName, license
|
@setStatus "Error", @repositoryLicense repositoryFullName, license
|
||||||
else # The repository is unlicensed
|
else # The repository is unlicensed
|
||||||
window.open "https://github.com/#{repositoryFullName}/community/license/new?template=#{@licenseId}"
|
window.location.href =
|
||||||
|
"https://github.com/#{repositoryFullName}/community/license/new?template=#{@licenseId}"
|
||||||
@setStatus ""
|
@setStatus ""
|
||||||
@inputEl.val("")
|
@inputEl.val("")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user