Files
EasySoft-ZenTaoPMS/module/testcase/js/automation.ui.js
T
2023-07-17 03:00:07 +00:00

28 lines
800 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 = $('[name=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').picker('setValue', data.node);
$('#shell').val(data.shell);
$('#scriptPath').val(data.scriptPath);
if($('[name=id]').length) $('[name=id]').val(data.id);
}
}, 'json');
}