fix error in loading url titles
This commit is contained in:
parent
a96c8ae75c
commit
45a15da896
1 changed files with 1 additions and 1 deletions
|
@ -374,7 +374,7 @@ const Import = {
|
||||||
$.get('/hacks/load_url_title', {
|
$.get('/hacks/load_url_title', {
|
||||||
url
|
url
|
||||||
}, function success(data, textStatus) {
|
}, function success(data, textStatus) {
|
||||||
if (data.trim() === '') return
|
if (typeof data === 'string' && data.trim() === '') return
|
||||||
var selector = '#showcard #topic_' + topic.get('id') + ' .best_in_place'
|
var selector = '#showcard #topic_' + topic.get('id') + ' .best_in_place'
|
||||||
if ($(selector).find('form').length > 0) {
|
if ($(selector).find('form').length > 0) {
|
||||||
$(selector).find('textarea, input').val(data.title)
|
$(selector).find('textarea, input').val(data.title)
|
||||||
|
|
Loading…
Add table
Reference in a new issue