* Add entry and webhook module.

This commit is contained in:
liugang
2017-10-19 10:41:29 +08:00
parent fe16db7484
commit 29cd0d4b4e
26 changed files with 1113 additions and 5 deletions

View File

@@ -0,0 +1,31 @@
/**
* create key for an entry.
*
* @access public
* @return void
*/
function createKey()
{
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'))
{
$('#ip').attr('disabled', 'disabled');
}
else
{
$('#ip').removeAttr('disabled');
}
})
$('#name').focus();