1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00

mirror fix on release JS

This commit is contained in:
Unknwon 2014-12-10 16:41:49 -05:00
parent bc8721fb6c
commit cf7ebfbdc8
2 changed files with 10 additions and 5 deletions

View File

@ -435,8 +435,13 @@ function initHookTypeChange() {
function initRepoRelease() {
$('#release-new-target-branch-list li').click(function() {
$('#repo-branch-current').text($(this).text());
$('#tag-target').val($(this).text());
if (!$(this).hasClass('checked')) {
$('#repo-branch-current').text($(this).text());
$('#tag-target').val($(this).text());
$(this).parent().find('.checked').removeClass('checked');
$(this).addClass('checked');
}
})
}

File diff suppressed because one or more lines are too long