Files
EasySoft-ZenTaoPMS/module/project/js/create.js
2017-08-14 16:46:59 +08:00

30 lines
762 B
JavaScript

function setCopyProject(projectID)
{
location.href = createLink('project', 'create', 'projectID=0&copyProjectID=' + projectID);
}
$(function()
{
$('#cpmBtn').click(function(){$('#copyProjectModal').modal('show')});
$('#copyProjects a').click(function(){setCopyProject($(this).data('id')); $('#copyProjectModal').modal('hide')});
var typeWidth = $('#type').closest('td').width();
$('#productsBox .col-sm-3').width(typeWidth);
$(document).on('change', "#productsBox select", function()
{
$('#productsBox .col-sm-3').width(typeWidth);
});
});
function showTypeTips()
{
var type = $('#type').val();
if(type == 'ops')
{
$('.type-tips').show();
}
else
{
$('.type-tips').hide();
}
}