refs #136 Refactor findLink when click toot
This commit is contained in:
parent
81fc81bf76
commit
07ef933238
|
@ -67,6 +67,9 @@ function findLink (target) {
|
|||
if (target.parentNode === undefined || target.parentNode === null) {
|
||||
return null
|
||||
}
|
||||
if (target.parentNode.getAttribute('class') === 'favourite') {
|
||||
return null
|
||||
}
|
||||
return findLink(target.parentNode)
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -67,6 +67,9 @@ function findLink (target) {
|
|||
if (target.parentNode === undefined || target.parentNode === null) {
|
||||
return null
|
||||
}
|
||||
if (target.parentNode.getAttribute('class') === 'reblog') {
|
||||
return null
|
||||
}
|
||||
return findLink(target.parentNode)
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -138,6 +138,9 @@ function findLink (target) {
|
|||
if (target.parentNode === undefined || target.parentNode === null) {
|
||||
return null
|
||||
}
|
||||
if (target.parentNode.getAttribute('class') === 'toot') {
|
||||
return null
|
||||
}
|
||||
return findLink(target.parentNode)
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue