Mercurial > hg > mercurial
changeset 939:7528d38018b1
merge
author | Dmitry Neverov <dmitry.neverov@gmail.com> |
---|---|
date | Wed, 09 Dec 2015 13:07:03 +0100 |
parents | ecf83680273e (current diff) 12ea02234103 (diff) |
children | 9ad288b299ea |
files | |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial-server/resources/buildServerResources/mercurialSettings.jsp Mon Nov 16 19:16:22 2015 +0300 +++ b/mercurial-server/resources/buildServerResources/mercurialSettings.jsp Wed Dec 09 13:07:03 2015 +0100 @@ -37,6 +37,7 @@ <tr> <th><label for="repositoryPath">Pull changes from: <l:star/></label></th> <td><props:textProperty name="repositoryPath" className="longField" onchange="updateBranchName(this.value)"/> + <jsp:include page="/admin/repositoryControls.html?projectId=${parentProject.externalId}&vcsType=hg"/> <span class="error" id="error_repositoryPath"></span></td> </tr> <tr> @@ -141,4 +142,18 @@ </td> </tr> </l:settingsGroup> + <script type="text/javascript"> + $j(document).ready(function() { + if (BS.Repositories != null) { + BS.Repositories.installControls($('repositoryPath'), function (repoInfo, cre) { + $('repositoryPath').value = repoInfo.repositoryUrl; + if (cre != null) { + $('username').value = cre.oauthLogin; + } + }); + } else { + $j('.listRepositoriesControls').hide(); + } + }); + </script> </table>