doc: minor syntax changes about async comments loading
This commit is contained in:
parent
61b3b69557
commit
858d64d092
@ -37,10 +37,10 @@ comment thread:
|
|||||||
window.Isso.fetchComments()
|
window.Isso.fetchComments()
|
||||||
|
|
||||||
It will delete all comments under the thread but not the PostBox, fetch
|
It will delete all comments under the thread but not the PostBox, fetch
|
||||||
comments with `data-isso-id` attribute of element `section#isso-thread` (if that
|
comments with `data-isso-id` attribute of the element `section#isso-thread` (if
|
||||||
attribute not exists, fallback to `window.location.pathname`), then fill
|
that attribute does not exist, fallback to `window.location.pathname`), then
|
||||||
comments into the thread. In other words, you should change `data-isso-id`
|
fill comments into the thread. In other words, you should change `data-isso-id`
|
||||||
attribute of element `section#isso-thread` (or modify the pathname with
|
attribute of the element `section#isso-thread` (or modify the pathname with
|
||||||
`location.pushState`) before you can get new comments. And the thread element
|
`location.pushState`) before you can get new comments. And the thread element
|
||||||
itself should *NOT* be touched or removed.
|
itself should *NOT* be touched or removed.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user