diff options
author | fuxiaohei <fuxiaohei@vip.qq.com> | 2014-06-25 16:03:29 +0800 |
---|---|---|
committer | fuxiaohei <fuxiaohei@vip.qq.com> | 2014-06-25 16:03:29 +0800 |
commit | 72ba273cc99589d7a0ca0a7986939e86f6599bf8 (patch) | |
tree | a148c92aee2b55fbd7cfa7f60a2cb419a9358645 /public | |
parent | 4cf7a1fca5ed22c4d46317477e6feab324fb337e (diff) | |
download | gitea-72ba273cc99589d7a0ca0a7986939e86f6599bf8.tar.gz gitea-72ba273cc99589d7a0ca0a7986939e86f6599bf8.zip |
select owner when creating repository
Diffstat (limited to 'public')
-rw-r--r-- | public/js/app.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/public/js/app.js b/public/js/app.js index b33469d9e8..6edade445b 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -770,7 +770,10 @@ function initRepoCreating() { $(this).parent().find(".checked").removeClass("checked"); $(this).addClass("checked"); } - console.log("set repo owner to uid :",uid); + // set button group to show clicked owner + $('#repo-owner-avatar').attr("src",$(this).find('img').attr("src")); + $('#repo-owner-name').text($(this).text().trim()); + console.log("set repo owner to uid :",uid,$(this).text().trim()); }); }()); console.log("init repo-creating scripts"); |