+ Post data when hook is triggered.

+ Add log.
This commit is contained in:
liugang
2017-10-24 18:01:56 +08:00
parent 29cd0d4b4e
commit a259217bdf
25 changed files with 656 additions and 218 deletions

View File

@@ -1,31 +1,17 @@
/**
* create key for an entry.
*
* @access public
* @return void
*/
function createKey()
$(function()
{
var chars = '0123456789abcdefghiklmnopqrstuvwxyz'.split('');
var key = '';
for(var i = 0; i < 32; i ++)
{
key += chars[Math.floor(Math.random() * chars.length)];
}
$('#key').val(key);
return false;
}
$('#allIP').change(function()
{
if($(this).prop('checked'))
$('.objectType').click(function()
{
$('#ip').attr('disabled', 'disabled');
}
else
{
$('#ip').removeAttr('disabled');
}
})
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');
}
});
$('#name').focus();
$('#name').focus();
$('#paramsmessage').attr('disabled', 'disabled');
});