* [task#132870] add js.

This commit is contained in:
liyang
2024-11-22 14:05:41 +08:00
committed by 曹延义
parent ea052b2b5d
commit 4b2f4d85b8
+16
View File
@@ -30,3 +30,19 @@ window.loadBranches = function(productID)
}
}, 'json');
}
window.setSystemBox = function(e)
{
const newSystem = $(e.target).is(':checked') ? 1 : 0;
$('#systemBox #systemName').addClass('hidden');
$('#systemBox .picker-box').addClass('hidden');
if(newSystem == 1)
{
$('#systemBox #systemName').removeClass('hidden');
}
else
{
$('#systemBox #systemName').val('');
$('#systemBox .picker-box').removeClass('hidden');
}
}