From 72ba273cc99589d7a0ca0a7986939e86f6599bf8 Mon Sep 17 00:00:00 2001 From: fuxiaohei Date: Wed, 25 Jun 2014 16:03:29 +0800 Subject: [PATCH] select owner when creating repository --- public/js/app.js | 5 ++++- templates/repo/create.tmpl | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index b33469d9e..6edade445 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"); diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 3288b736c..0eee1e572 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -9,9 +9,9 @@
-