Files
EasySoft-ZenTaoPMS/module/repo/js/create.js
T
2020-04-30 15:31:26 +08:00

26 lines
542 B
JavaScript

$(function()
{
scmChanged(scm);
$('#submit').mousedown(function()
{
$form = $(this).closest('form');
$form.css('min-height', $form.height());
})
});
function scmChanged(scm) {
if(scm == 'Git')
{
$('.account-fields').addClass('hidden');
$('.tips-git').removeClass('hidden');
$('.tips-svn').addClass('hidden');
} else
{
$('.account-fields').removeClass('hidden');
$('.tips-git').addClass('hidden');
$('.tips-svn').removeClass('hidden');
}
}