* [task#132870] add js.
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user