Files
EasySoft-ZenTaoPMS/module/testcase/js/automation.ui.js
T
2023-06-26 12:02:28 +00:00

28 lines
770 B
JavaScript

$(function()
{
new zui.Tooltip('#automationTip', {title: automationTip, trigger: 'hover', placement: 'bottom', type: 'black', 'className': 'border border-light'});
});
function loadProduct()
{
$('#shell').val('');
$('#scriptPath').val('');
var productID = $('#product').val();
var url = createLink('zanode', 'ajaxGetZTFScript', "type=product&objectID=" + productID)
$.get(url, function(result)
{
if(result.result == 'success')
{
data = result.data;
if(!data) return false;
$('#node').val(data.node)
$('#shell').val(data.shell);
$('#scriptPath').val(data.scriptPath);
if($('[name=id]').length) $('[name=id]').val(data.id);
}
}, 'json');
}