mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-28 06:57:22 +08:00
text align tag + update/edit get desc + rating improve
This commit is contained in:
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
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')
|
||||
})
|
||||
Reference in New Issue
Block a user