Files
EasySoft-ZenTaoPMS/module/metric/js/common.ui.js
T
2023-09-21 12:53:48 +08:00

16 lines
397 B
JavaScript

window.addUnit = function(e)
{
if($(e.target).prop('checked'))
{
$('#unitBox').addClass('hidden');
$('#addUnitBox').removeClass('hidden');
$("[name^='customUnit']").prop('checked', true);
}
else
{
$('#unitBox').removeClass('hidden');
$('#addUnitBox').addClass('hidden');
$("[name^='customUnit']").prop('checked', false);
}
}