Browse Source

fix repo-new ui, fix top-nav search-bar ui

tags/v1.2.0-rc1
FuXiaoHei 12 years ago
parent
commit
8549b47e04
3 changed files with 12 additions and 1 deletions
  1. +2
    -0
      public/css/gogs.css
  2. +9
    -1
      public/js/app.js
  3. +1
    -0
      templates/release/new.tmpl

+ 2
- 0
public/css/gogs.css View File

@@ -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 */


+ 9
- 1
public/js/app.js View File

@@ -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 ($) {


+ 1
- 0
templates/release/new.tmpl View File

@@ -28,6 +28,7 @@
{{end}}
</ul>
</div>
<input id="tag-target" type="hidden" name="tag_target" value="{{.Repository.DefaultBranch}}"/>
</div>
<p class="help-block">Choose an existing tag, or create a new tag on publish</p>
</div>


Loading…
Cancel
Save