From 8549b47e04a1461520d698bd87cbd67f1236508b Mon Sep 17 00:00:00 2001 From: FuXiaoHei Date: Mon, 14 Apr 2014 20:40:22 +0800 Subject: [PATCH] fix repo-new ui, fix top-nav search-bar ui --- public/css/gogs.css | 2 ++ public/js/app.js | 10 +++++++++- templates/release/new.tmpl | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/public/css/gogs.css b/public/css/gogs.css index b9c7b6ae..12b6d8b0 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -109,11 +109,13 @@ html, body { background-color: #F6F6F6; border-bottom-right-radius: 3px; border-top-right-radius: 3px; + -webkit-transition: width linear .25s; } #nav-search-form input[type=search]:focus { background-color: #FFF; border-color: #D9D9D9; + width: 320px; } /* gogits nav item active status */ diff --git a/public/js/app.js b/public/js/app.js index 059663e1..a5c79a39 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -559,7 +559,15 @@ function initRelease() { $('.release-write a[data-toggle]').on("click", function () { $('.release-preview-content').html("loading..."); }); - }()) + }()); + + // release new target selection + (function () { + $('#release-new-target-branch-list').on('click', 'a', function () { + $('#tag-target').val($(this).text()); + $('#release-new-target-name').text(" " + $(this).text()); + }); + }()); } (function ($) { diff --git a/templates/release/new.tmpl b/templates/release/new.tmpl index 439496ea..6dfe4a5c 100644 --- a/templates/release/new.tmpl +++ b/templates/release/new.tmpl @@ -28,6 +28,7 @@ {{end}} +

Choose an existing tag, or create a new tag on publish