mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-16 05:50:55 +08:00
fix ptgen.js
This commit is contained in:
4
public/js/ptgen.js
vendored
4
public/js/ptgen.js
vendored
@@ -19,11 +19,11 @@ jQuery('.btn-get-pt-gen').on('click', function () {
|
||||
return
|
||||
}
|
||||
doInsert(response.data.format, '', false)
|
||||
if (response.data.aka) {
|
||||
if (response.data.aka && response.data.site === 'douban') {
|
||||
form.find("input[name=small_descr]").val(response.data.aka.join("/"))
|
||||
}
|
||||
if (response.data.imdb_link) {
|
||||
form.find("input[name=url]").val(response.data.imdb_link)
|
||||
form.find("input[data-pt-gen=url]").val(response.data.imdb_link)
|
||||
}
|
||||
}, 'json')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user