mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-15 01:12:12 +00:00
fix applyShortenedURI() to handle detached elements too
This commit is contained in:
parent
7542eddf5b
commit
08856095b0
@ -847,7 +847,7 @@ function fetchShortenedURI(req) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function applyShortenedURI(short, long) {
|
function applyShortenedURI(short, long) {
|
||||||
var elems = $('.link-shortened[href="' + short + '"]')
|
var elems = getElem('.link-shortened[href="' + short + '"]')
|
||||||
.attr('href', long)
|
.attr('href', long)
|
||||||
.removeClass('link-shortened')
|
.removeClass('link-shortened')
|
||||||
.off('click mouseup')
|
.off('click mouseup')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user