mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 05:00:49 +08:00
23 lines
593 B
JavaScript
Vendored
23 lines
593 B
JavaScript
Vendored
jQuery('.btn-get-pt-gen').on('click', function () {
|
|
let input = jQuery(this).closest('td').find('[data-pt-gen]')
|
|
let value = input.val().trim()
|
|
if (value == '') {
|
|
return
|
|
}
|
|
let params = {
|
|
action: 'getPtGen',
|
|
params: {url: value}
|
|
}
|
|
jQuery('body').loading({
|
|
stoppable: false
|
|
});
|
|
jQuery.post('ajax.php', params, function (response) {
|
|
jQuery('body').loading('stop');
|
|
if (response.ret != 0) {
|
|
alert(response.msg)
|
|
return
|
|
}
|
|
doInsert(response.data, '', false)
|
|
}, 'json')
|
|
})
|