|
|
@@ -2950,13 +2950,13 @@ $(document).ready(async () => { |
|
|
|
} |
|
|
|
|
|
|
|
const $cloneAddr = $("#clone_addr"); |
|
|
|
$cloneAddr.on("change", () => { |
|
|
|
$cloneAddr.on("input change", () => { |
|
|
|
const $repoName = $("#alias"); |
|
|
|
const $owner = $("#ownerDropdown div.text").attr("title"); |
|
|
|
const $urlAdd = |
|
|
|
location.href.split("/")[0] + "//" + location.href.split("/")[2]; |
|
|
|
if ($cloneAddr.val().length > 0 && $repoName.val().length === 0) { |
|
|
|
// Only modify if repo_name input is blank |
|
|
|
if ($cloneAddr.val().length > 0 /* && $repoName.val().length === 0 */) { |
|
|
|
// modify when clone address change |
|
|
|
const repoValue = $cloneAddr.val().match(/^(.*\/)?((.+?)(\.git)?)$/)[3]; |
|
|
|
$repoName.val($cloneAddr.val().match(/^(.*\/)?((.+?)(\.git)?)$/)[3]); |
|
|
|
$.get( |
|
|
|