Files
EasySoft-ZenTaoPMS/module/webhook/js/create.js
liugang e8cdfe2bff + Add en lang files.
* Finish task 3292,3293,3294,3305,3306,3307,3308,3309.
2017-11-02 11:35:52 +08:00

38 lines
1018 B
JavaScript

$(function()
{
$('#type').change(function()
{
var type = $(this).val();
$('#sendTypeTR').toggle(type != 'dingding');
$('#paramsTR').toggle(type != 'bearychat' && type != 'dingding');
$('#urlNote').html(urlNote[type]);
});
$('.objectType').click(function()
{
if($(this).prop('checked'))
{
$(this).parent().parent().next().find('input[type=checkbox]').attr('checked', 'checked');
}
else
{
$(this).parent().parent().next().find('input[type=checkbox]').removeAttr('checked');
}
});
$('#allParams, #allActions').click(function()
{
if($(this).prop('checked'))
{
$(this).parents('tr').find('input[type=checkbox]').attr('checked', 'checked');
}
else
{
$(this).parents('tr').find('input[type=checkbox]').removeAttr('checked');
}
});
$('#name').focus();
$('#paramstext').attr('disabled', 'disabled');
});